To display the log path:

$ sudo serveradmin command dhcp:command = getLogPaths

The computer will respond with the following output:

dhcp:systemLog = <system-log>

Value

Description

<system-log>

The location of the DNS service log.

 

Default = /var/logs/system.log

 

 

Managing the DNS Service

The Domain Name System (DNS) is a distributed database that maps IP addresses to domain names so your clients can find the resources by name rather than by numerical address. A DNS server keeps a list of domain names and the IP addresses associated with each name.

Starting and Stopping the DNS Service

To start DNS service:

$ sudo serveradmin start dns

To stop DNS service:

$ sudo serveradmin stop dns

Checking the Status of DNS Service

To see summary status of DNS service:

$ sudo serveradmin status dns

To see detailed status of DNS service:

$ sudo serveradmin fullstatus dns

Viewing DNS Service Settings

To list DNS service configuration settings:

$ sudo serveradmin settings dns

To list a particular setting:

$ sudo serveradmin settings dns:setting

To list a group of settings:

Enter only 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:*

Chapter 14 Working with Network Services

225

Page 225
Image 225
Apple Mac OS X Server Managing the DNS Service, Starting and Stopping the DNS Service, Checking the Status of DNS Service