Technical article 110027

How to set up debug with DNS when starting named.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

The named daemon needs to be started with debug to troubleshoot a DNS problem.

The man page for named(ADMN) states that named can be started
with "-d <debug_level>". However, this seems to hang indefinitely.
The shell prompt is not returned although a "ps -ef| grep named"
listing shows named has started.

If the following line in /etc/tcp is edited to start named with a debug level of 9:

/etc/named -d 9 ; echo "named \c"

the tcp script will hang while starting named, and the tcp script will not complete.

Cause

If it is started with the debug option enabled, the named daemon must be run in the background.

Solution

To start named from a shell prompt, type:

/etc/named -d <debug_level> &

Or, to start named with a debug level, make the following modifications to these lines in the /etc/tcp script:

if [ -x /etc/named -a -f /etc/named.boot ]; then
        /etc/named -d 9 &
        echo "named \c"
fi

From the Xinuos technical article database, record 110027. Reproduced with permission. The original is at www.sco.com/ta/110027, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.