Go to main content

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

Exit Print View

Updated: October 2017

DNS and the Service Management Facility

The DNS server daemon, named, is managed by using the SMF. For an overview of SMF, see Chapter 1, Introduction to the Service Management Facility in Managing System Services in Oracle Solaris 11.3. Also refer to the svcadm(1M), svcs(1), and svccfg(1M) man pages for more details.

    Note the following important information needed to use the SMF service to administer the DNS service:

  • To perform administrative actions on this service, such as enabling, disabling, or restarting, use the svcadm command.

  • To provide some protection for the service configuration, you can temporarily disable a service by using the –t option. If the service is disabled with the –t option, the original settings are restored for the service after a reboot. If the service is disabled without –t, the service remains disabled after a reboot.

  • The Fault Managed Resource Identifiers (FMRIs) for the DNS service are svc:/network/dns/server:instance, and svc:/network/dns/client:instance.

  • You can use the svcs command to display the status of the DNS server and client.

    • The following example shows the output of the svcs command.

      # svcs \*dns\*
      STATE          STIME    FMRI
      disabled       Nov_16   svc:/network/dns/multicast:default
      online         Nov_16   svc:/network/dns/server:default
      online         Nov_16   svc:/network/dns/client:default
    • The following example shows the output of the svcs –l command.

      # svcs -l dns/server
      fmri         svc:/network/dns/server:default
      name         BIND DNS server
      enabled      true
      state        online
      next_state   none
      state_time   Tue Jul 26 19:26:12 2011
      logfile      /var/svc/log/network-dns-server:default.log
      restarter    svc:/system/svc/restarter:default
      contract_id  83
      manifest     /lib/svc/manifest/network/dns/server.xml
      dependency   require_all/none svc:/system/filesystem/local (online)
      dependency   require_any/error svc:/network/loopback (online)
      dependency   optional_all/error svc:/network/physical (online)
  • To start the DNS service with different options, change the properties of the svc:/network/dns/server service by using the svccfg command. For an example, see How to Configure DNS Server Options.

Because the DNS server daemon, named, is managed by SMF, the server is automatically restarted when an unexpected event occurs that causes named to exit abnormally. Additionally, you can use the svcadm command to restart the service. The BIND-specific management that is available by using rndc command can be used simultaneously with SMF.