Technical article 109849

"/etc/ndc: stop: named not running" is displayed when shutting down OpenServer 5.0.5, 5.0.6.

OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

When shutting down the system, the following is displayed:

/etc/ndc: stop: named not running

DNS (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.saved

2. Edit /etc/tcp and on line 283 you will find:

# stop the nameserver

if [ -x /etc/ndc ]; then /etc/ndc stop fi

Change this to:
# stop the nameserver

if [ -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).

From the Xinuos technical article database, record 109849. Reproduced with permission. The original is at www.sco.com/ta/109849, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.