ndc(1Mtcp)


ndc -- name daemon control interface

Synopsis

ndc directive [...]

Description

This command allows the name server administrator to send various signals to the name server, or to restart it. Zero or more directives may be given, from the following list:

status
Displays the current status of named(1Mtcp) as shown by ps(1).

dumpdb
Causes named to dump its database and cache to /var/tmp/named_dump.db. (Uses the INT signal.)

reload
Causes named to check the serial numbers of all primary and secondary zones and to reload those that have changed. (Uses the HUP signal.)

stats
Causes named to dump its statistics to /var/tmp/named.stats. (Uses the IOT or ABRT signal.)

trace
Causes named to increment its tracing level by one. Whenever the tracing level is nonzero, trace information will be written to /var/tmp/named.run. Higher tracing levels result in more detailed information. (Uses the USR1 signal.)

notrace
Causes named to set its tracing level to zero, closing /var/tmp/named.run. if it is open (uses the USR2 signal.)

querylog
Causes named to toggle the query logging feature, which while on will result in a syslog(3G) of each incoming query (uses the WINCH signal.) Note that query logging consumes quite a lot of log file space. This directive may also be given as qrylog.

start
Causes named to be started, as long as it isn't already running.

stop
Causes named to be stopped, if it is running.

restart
Causes named to be killed and restarted.

Arguments to named are not preserved by restart, or known by start. Some mechanism for controlling the parameters and environment should exist.

ndc is implemented as a sh(1) script.

References

named(1Mtcp)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.