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 Verify DNS Configuration Changes

When modifying the DNS configuration, you can verify the syntax of the /etc/named.conf file with the named-checkzone command.

  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. Change the configuration file, as needed.

    In this example, the default directory is changed.

    # echo 'options {directory "/var/named";};' > /etc/named.conf
  3. Verify the file contents.
    # named-checkconf
    /etc/named.conf:1: change directory to '/var/named' failed: file not found
    
    /etc/named.conf:1: parsing failed

    In this example, the check failed because the /var/named directory has not yet been created.

  4. Correct any errors reported.
    # mkdir /var/named
  5. Repeat steps 3 and 4 until no errors are reported.
  6. (Optional) Reflect the change in the running service by using one of the following methods:
    • Use the rndc command to update the configuration using the –reload or –reconfig subcommand, depending on the changes made.
    • Restart the named service.
      # svcadm restart svc:/network/dns/server:default