nslookup and reverse lookup failure of nameserver under 5.2-RELEASE

2004-01-25 Thread Matthew Fremont
While doing some post-install config on a new
5.2-RELEASE system, I encountered a problem where
nslookup fails because it isn't able to perform a
successful reverse lookup of the DNS server's IP.

For example:

$ nslookup www.freebsd.org
*** Can't find server name for address 172.16.0.1:
Non-existent host/domain
*** Can't find server name for address ::: No response
from server
*** Default servers are not available
$

An attempt to use nslookup in interactive mode also
fails, producing the same error messages.

172.16.0.1 is Netgear WGR614 router/firewall that, by
default, runs a DNS server (not sure whether it is
caching or just forwarding). There is no apparent way
to add records to the DNS on the WGR614, so the lookup
of the nameserver's IP will always fail.

The nameserver is working properly, and commands like
dig(1), host(1), telnet(1), and ftp(1), are able to
sucessfully resolve names. The problem appears to be
isolated to nslookup(8).

If memory serves me correctly, at some time in the
past nslookup handled a reverse lookup failure of the
server more gracefully, identifying the server as
Unknown, and continuing with the query.

Is the behavior in 5.2-RELEASE a bug or a feature?


Matthew

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nslookup and reverse lookup failure of nameserver under 5.2-RELEASE

2004-01-25 Thread Matthew Seaman
On Sun, Jan 25, 2004 at 11:13:06AM -0800, Matthew Fremont wrote:
 The nameserver is working properly, and commands like
 dig(1), host(1), telnet(1), and ftp(1), are able to
 sucessfully resolve names. The problem appears to be
 isolated to nslookup(8).
 
 If memory serves me correctly, at some time in the
 past nslookup handled a reverse lookup failure of the
 server more gracefully, identifying the server as
 Unknown, and continuing with the query.

As I recall, this quirk of nslookup(8) was one of the reasons why the
BIND project has deprecated it in favour of the better behaved tools
like dig(1) and host(1).  If you used a version of nslookup(8) that
didn't have this problem, then it must have been specially patched to
do so.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature