[ale] nslookup problems

Omar Loggiodice ologgio at vrainn.com
Tue Oct 8 12:22:00 EDT 1996

Matthew Avery Writes :
:So as not to keep you all in the dark here is something new
:I discovered when playing with nslookup.
:Here are the results from several nslookup sessions I ran.
:It looks to me like the nameserver is working OK:
:>From miranda (Linux machine at my desk):
:miranda 38# nslookup -
:*** Can't find server name for address No response from server
:*** Default servers are not available
:miranda 39# nslookup -
:Default Server:  fs01.nas.nasa.gov
:> amelia.nas.nasa.gov
:Server:  fs01.nas.nasa.gov
:For some reason I can't *start* nslookup with the default
:nameserver for miranda but if I start it with another 
:nameserver and then switch it works fine.  Very strange.

Actually this is the proper behaviour.

When you start nslookup with "-"  the
following happens:

a. is added to the list of available name servers
b. A PTR query is sent to the list of available name servers to find the 
   FQDN for
c. doesn't have a PTR record for itself. nslookup doesn't
   have any more nameservers to use.
d. Terminates with an error saying it can't find the FQDN for

So, you are probably missing a PTR (IP adress to name mapping) record for need to add something like:	IN PTR nameserver.asetech.com 

Now you are probably asking yourself why does it work when you switch 
to the server *after* starting nslookup with the other server.

The reason is that nslookup is a little bit more permissive when you already
have entered interactive mode (it doesn't require the PTR record for the
nameserver).  I agree this is inconsistent, but this is useful when
debugging nameservers.

Forgetting  PTR records is one of the most common errors when setting up
nameservers. Usually they are not caught, unless people try to ftp to a
"smart" ftp server (like ftp.funet.fi) which double-checks and makes sure
the reverse-mapping (IP to name) matches the direct-mapping (name to IP). 

Don't forget to contact interNic to register your reverse-address mapping if
you own your set of IP addresses.

Hmm....I take that back........judging by whois looks like your
inverse mapping is provided by internal servers at NASA....you probably
don't need to contact InterNIC. Just make sure your inverse mapping is
registered in your master nameservers.

            /   __  __  __  - __  __ / - _  __  ologgio at vrainn.com
  Omar R.  /__ /_/ /_/ /_/ / /_/ /_/ / /_  /-_  CIS: 74040,1543
                  __/ __/                         
___C++/6_yrs____Virtual Reality/4_yrs____Vorl_____Linux(free)_______
Apple ]['s, remember Applesoft?

More information about the Ale mailing list