Go to main content

Working With Oracle® Solaris 11.3 Directory and Naming Services: DNS and NIS

Exit Print View

Updated: October 2017

How to Enable a DNS Client

  1. Become an administrator.

    For more information about obtaining the appropriate rights to perform specific tasks, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Configure the DNS domain.

    Specify the domains that need to be searched and the IP addresses for the DNS name servers.

    # svccfg -s dns/client:default
    svc:/network/dns/client:default> setprop config/search = \
    astring: ("example.com" "sales.example.com")
    svc:/network/dns/client:default> setprop config/nameserver = \
    net_address: (
    svc:/network/dns/client:default> refresh
    svc:/network/dns/client:default> quit
  3. Update the name service switch information in the SMF repository to use DNS.
    # svccfg -s system/name-service/switch:default
    svc:/system/name-service/switch:default> setprop config/host = astring: "files dns"
    svc:/system/name-service/switch:default> refresh
    svc:/system/name-service/switch:default> quit
  4. Start the services needed to run the DNS client.
    # svcadm enable network/dns/client:default
    # svcadm enable system/name-service/switch:default