You are on page 1of 2

The DNS server daemon is the /usr/sbin/named process.

This daemon provides a


service in the SMF. The named daemon is started at boot time only if the
/etc/named.conf file exists and the appropriate SMF service is enabled.

The following svcs command is used to determine the status of the DNS-related
services:

# svcs -a | grep dns


disabled Oct_22 svc:/network/dns/client:default
disabled Oct_22 svc:/network/dns/server:default

The following svcadm commands enable the DNS naming service and the default client
service:

# svcadm enable svc:/network/dns/server:default


# svcadm enable svc:/network/dns/client:default
# svcs -a | grep dns
online 23:02:34 svc:/network/dns/client:default
online 23:08:27 svc:/network/dns/server:default

Note: The DNS client service will not start any new processes, but when enabled, checks
that the system is configured as a DNS client with an /etc/resolv.conf file. Other
services used for managing application and daemons that require DNS, such as LDAP,
will have a dependency on the DNS client service to ensure that the system is a DNS
client.

The named daemon reads the /etc/named.conf file when the daemon is started by the
SMF. The configuration file directs the named daemon either to other servers or to local
data files for a specified domain.

The /etc/named.conf file contains statements and can contain comments. Statements
end with a semicolon (;), they can contain a block of statements enclosed within curly
braces ({}), and each statement in the block is terminated with a semicolon (;).
Comments can start with /* and end with */, can follow either # or //, and can extend to
the end of the line.

Syntax checking:

named-checkconf : check the configs in the /etc/named.cof


named-checkzone qa6.na /var/named/ipv6/qa6.na: check the syntax error in the
ipv6/qa6.na representing qa6.na zone.

You might also like