Specifications

Chapter 14 Configuring and Managing Network Services 229
Viewing DNS Service Settings
To view a setting:
$ sudo serveradmin settings dns:
setting
To view a group of settings:
Enter as much of the name as you want, stopping at a colon (:), then enter an asterisk
(*) as a wildcard for the remaining parts of the name. For example:
$ sudo serveradmin settings dns:zone:_array_id:localhost:*
To view all service configuration settings:
$ sudo serveradmin settings dns
Changing DNS Service Settings
To modify your servers DNS configuration, use serveradmin. However, you’ll probably
find it more straightforward to work with DNS and BIND using the standard tools and
techniques described in the many books on the subject. (For an example, see DNS and
BIND by Paul Albitz and Cricket Liu.)
DNS Service Settings
To view the settings, see “Viewing DNS Service Settings” on this page.
Available DNS serveradmin Commands
Viewing the DNS Service Log and Log Path
To view the contents of the DNS service log and the log paths, use tail or another file
listing tool.
To view the latest entries in a log:
$ tail
log-file
To see where the current DNS log is located, use the serveradmin getLogPaths
command. The default is /Library/Logs/named.log.
To display the log path:
$ sudo serveradmin command dns:command = getLogPaths
Command (dns:command=) Description
getLogPaths Find the location of the DNS service log. See “Viewing the DNS
Service Log and Log Path” on this page.
getStatistics Retrieve DNS service statistics. See “Viewing DNS Service Statistics”
on this page.