When modifying the DNS configuration, you can verify the syntax of the /etc/named.conf file with the named-checkzone command.
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.4.
In this example, the default directory is changed.
# echo 'options {directory "/var/named";};' > /etc/named.conf
# 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.
# mkdir /var/named
# svcadm restart svc:/network/dns/server:default