forwarding zone on BIND 8.2.2-P5

Joseph S D Yao jsdy at cospo.osis.gov
Mon May 15 22:40:30 UTC 2000


On Mon, May 15, 2000 at 07:00:11PM +0000, Karma Crayona wrote:
> You have to specifically tell nslookup that you are doing a reverse
> lookup else it defaults to a lookup of an A record.  Try:
> 
> $ nslookup
> > set q=ptr
> > 131.96.22.43
> 
> I just tried it, and got an non-authoritative answer.
> 
> --
> Karma C.

Actually, this is incorrect ... and this is one of the things which
'dig' promoters point out as a defect in 'nslookup'.  Yes, it does
default to looking up an "A" record.  But if you give 'nslookup' a
dotted quad that looks like an IP address, it will convert it into a
reverse DNS lookup, effectively:

	set type=ptr
	43.22.96.131.in-addr.arpa.

which is the "correct" lookup.  It will then go ahead and look that up.
This is not, of course, what happens in "real" DNS.  But it is more
intuitive for the user.

I just got a perfectly authoritative answer from an
	'nslookup 131.96.22.43'

Name:    tinman.CS.Gsu.EDU
Address:  131.96.22.43

I suspect that the original poster has discovered and fixed the syntax
error in his reverse-DNS zone file.  ;-)

[If I had gotten the same answer and it were non-authoritative, well,
that's all right too: it just says that I got a response that had been
cached or something.]

-- 
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.



More information about the bind-users mailing list