How to Enable a DNS Client on Solaris 11.2


  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.2 .
  2. Configure the DNS domain.
    First, list the domains to search and the IP addresses for the DNS name servers. Then, update the SMF repository.
    # svccfg -s dns/client
    svc:/network/dns/client> setprop config/search = \
    astring: ("example.com" "sales.example.com")
    svc:/network/dns/client> setprop config/nameserver = \
    net_address: (192.168.1.10 192.168.1.11)
    svc:/network/dns/client> select network/dns/client:default
    svc:/network/dns/client:default> refresh
    svc:/network/dns/client:default> quit
  3. Update name service switch information to use DNS.
    The first command updates the DNS configuration information in the SMF repository.
    # svccfg -s system/name-service/switch
    svc:/system/name-service/switch> setprop config/host = astring: "files dns"
    svc:/system/name-service/switch> select system/name-service/switch:default
    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
    # svcadm enable system/name-service/switch

No comments: