Specifications
230 Chapter 14 Configuring and Managing Network Services
Viewing DNS Service Statistics
To view a summary of the DNS service workload, use the serveradmin getStatistics
command.
To view statistics:
$ sudo serveradmin command dns:command = getStatistics
The computer responds with output similar to the following:
dns:queriesArray:_array_index:0:name = "NS_QUERIES"
dns:queriesArray:_array_index:0:value = -1
dns:queriesArray:_array_index:1:name = "A_QUERIES"
dns:queriesArray:_array_index:1:value = -1
dns:queriesArray:_array_index:2:name = "CNAME_QUERIES"
dns:queriesArray:_array_index:2:value = -1
dns:queriesArray:_array_index:3:name = "PTR_QUERIES"
dns:queriesArray:_array_index:3:value = -1
dns:queriesArray:_array_index:4:name = "MX_QUERIES"
dns:queriesArray:_array_index:4:value = -1
dns:queriesArray:_array_index:5:name = "SOA_QUERIES"
dns:queriesArray:_array_index:5:value = -1
dns:queriesArray:_array_index:6:name = "TXT_QUERIES"
dns:queriesArray:_array_index:6:value = -1
dns:nxdomain = 0
dns:nxrrset = 0
dns:reloadedTime = ""
dns:success = 0
dns:failure = 0
dns:recursion = 0
dns:startedTime = "2003-09-10 11:24:03 -0700"
dns:referral = 0
Configuring IP Forwarding
You can configure Mac OS X Server to provide routing services by configuring the
network interfaces properly and by enabling IP forwarding. A server providing routing
services requires at least two interfaces, one to connect to the internal network and
one to connect to the public network. Each of these interfaces must be configured
correctly to allow it to route network data.
After the interfaces are configured to allow the server to communicate on the two
networks, you must enable the computer to forward traffic between the networks. IP
forwarding is enabled by using the sysctl tool to set the net.inet.forwarding kernel
variable to 1 as follows:
$ sysctl -w net.inet.forwarding=1