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 Configure a DNS Server

Note -  Do not configure named to specify a root directory. A more secure option is to create a Oracle 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.3.

  2. Create and verify a DNS configuration file.

    Before the named daemon starts, a valid configuration file must exist. This file is called /etc/named.conf by default. The configuration of named is 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.

    You use this file 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:default