Problem
When shutting down the system, the following is displayed:
/etc/ndc: stop: named not runningDNS (Domain Name Service) has not been configured on the system.
Cause
The TCP/IP startup/shutdown script (/etc/tcp) runs "/etc/ndc stop" when named(ADMN) is not running.
Solution
Use the following procedure to modify /etc/tcp. This will update it to check for the existence of /etc/named.conf before trying to stop named(ADMN):
1. Log in as the root user, and make a copy of /etc/tcp. For example:
# cp /etc/tcp /etc/tcp.saved2. Edit /etc/tcp and on line 283 you will find:
# stop the nameserverif [ -x /etc/ndc ]; then /etc/ndc stop fi
Change this to:# stop the nameserverif [ -x /etc/ndc ]; then if [ -f /etc/named.conf ]; then /etc/ndc stop fi fi
Subsequent shutdowns of the system will no longer display this message.
See also
The manual pages for named(ADMN) and ndc(ADMN).