DNS Service

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:

Type only as much of the name as you want, stopping at a colon (:), then type an asterisk (*) as a wildcard for the remaining parts of the name. For example,

$ sudo serveradmin settings dns:zone:_array_id:localhost:*

Changing DNS Service Settings

You can use serveradmin to modify your server’s DNS configuration. However, you’ll probably find it more straightforward to work directly with DNS and BIND using the standard tools and techniques described in the many books on the subject. (See, for example, “DNS and BIND” by Paul Albitz and Cricket Liu.)

DNS Service Settings

To list the settings, see “Viewing DNS Service Settings” on this page.

List of DNS serveradmin Commands

Command (dns:command=) Description

getLogPaths

Find the location of the DNS service log. See “Viewing the DNS

 

Service Log” on this page.

 

 

getStatistics

Retrieve DNS service statistics. See “Listing DNS Service Statistics”

 

on page 136.

 

 

Viewing the DNS Service Log

You can use tail or any other file listing tool to view the contents of the DNS service log.

Chapter 13 Working With Network Services

135

Page 135
Image 135
Apple oxs manual DNS Service