Technical article 111068

nslookup(TC) fails on startup with the errors "Can't find server name for address" and "Default servers are not available".

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

When I try to use nslookup(TC) to query my nameserver, I get the following error messages:

*** Can't find server name for address X.X.X.X: Non existent host/domain *** Default servers are not available

Cause

There is a missing PTR record in the DNS configuration. Specifically, the PTR record for the IP address listed in the /etc/resolv.conf file is missing.

When nslookup(TC) starts up, one of the first things it looks up
is the name of the nameserver(s) listed in /etc/resolv.conf.  If
this lookup fails, the first line of the error is printed.  When
nslookup finishes scanning through the list of nameserver entries
in the file, the second line is printed.

Solution

Complete the DNS configuration by entering a PTR record for every
node that has an A record.  Even without completing the DNS
configuration, you should be able to run nslookup(TC)
non-interactively, if you need to.

See also

Manula pages: nslookup(TC), resolver(SFF)

"DNS and BIND", Albitz and Liu, O'Reilly & Associates, 3rd edition.

From the Xinuos technical article database, record 111068. Reproduced with permission. The original is at www.sco.com/ta/111068, 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.