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

Exit Print View

Updated: July 2014
 
 

How to Configure a DNS Server


Note - Configuring named to specify a change root directory is not recommended. A more secure option is to create a Solaris Zone and configure named to run within that zone.
  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. Create and verify a DNS configuration file.

    Before the named daemon will start, a valid configuration file must exist. The file is called /etc/named.conf by default. The configuration of named might be very simple. An empty file provides sufficient information to configure a caching only server, assuming that DNS root servers are accessible.

    # touch /etc/named.conf
    # named-checkconf -z /etc/named.conf
  3. (Optional)Create an rndc configuration file.

    This file is used to configure remote control access of the DNS server. See How to Create an rndc.conf File.

  4. (Optional)Change configuration information for the dns/server service.

    See How to Configure DNS Server Options.

  5. Start the DNS service.
    # svcadm enable dns/server