Newbie. Why does nslookup not do what I expect?

Kevin Darcy kcd at daimlerchrysler.com
Fri Jun 14 23:00:45 UTC 2002


Rick wrote:

> I have bind setup on Redhat7.3 and when I try nslookup corebuilder1.mynet.ca
> I get what I expect according to the examples in O'Reilly's DNS & Bind 4th
> Edition.
>
> Server:    192.168.1.100
> Address:    192.168.1.100#53
>
> Name:    corebuilder1.mynet.ca
> Address:    192.168.1.1
>
> When I try nslookup 192.168.1.1 I get
>
> Server:    192.168.1.100
> Address:    192.168.1.100#53
>
> 1.1.168.192.in-addr.arpa        name = corebuilder1.mynet.ca.
>
> I thought I should get something like this
>
> Server:     server1.mynet.ca
> Address: 192.168.1.100
>
> Name:    corebuilder1.mynet.ca
> Address:    192.168.1.1
>
> What could I have done wrong to get this format when doing reverse mapping?

You probably didn't do anything wrong. Different versions of nslookup have
different output formats for reverse lookups. Yet Another Reason to ditch
nslookup and use a real lookup tool like "dig" instead...


- Kevin




More information about the bind-users mailing list