--Boundary_(ID_ybhB9ILJnHGsr1sE59rqTw)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
-- \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Sean Harvey OAO Corp harvey@nmc8.chinalake.navy.mil Ridgecrest CA (619)939-2199 The future masters of technology will have to be lighthearted and intelligent. The machine easily masters the grim and the dumb. -- Marshall McLuhan, 1969 \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_--Boundary_(ID_ybhB9ILJnHGsr1sE59rqTw) Content-type: text/plain; name=nslookup_summary; charset=us-ascii Content-disposition: inline; filename=nslookup_summary Content-transfer-encoding: 7bit
Original posting:
> Dear friends- > > I can't do a reverse nslookup on any SunOS 4.1.3 machine. Here is what I > get when I use the command under Solaris 2.5.1. It works: > > nmc13% nslookup 199.120.150.1 > Server: sunman.chinalake.navy.mil > Address: 129.131.1.189 > > Name: owens.ridgecrest.ca.us > Address: 199.120.150.1 > > > > When I try the same command on a SunOS machine, I get this. It doesn't > return the domain name: > > > nmc8:/tmp_mnt/u/harvey> nslookup 199.120.150.1 > Server: chinalake.navy.mil > Address: 129.131.1.189 > > Name: [199.120.150.1] > Address: 199.120.150.1 > > > > My question is whether I have a config problem or whether this command > is not supported under SunOS. Thanks in advance. >
Thanks for the replies. My problem is fixed. This is a cut from a Sun document that explains how to do it:
Q: Why can't nslookup look up an ip address, such as 127.0.0.1? A: Some versions of nslookup will let you type an ip address, such as 127.0.0.1, directly at the prompt, and then automatically do the reversal and lookup for you. This works, for example, under Solaris' nslookup. This is not true of older versions of nslookup on SunOS machines which will give you the following result: > 127.0.0.1 Server: sun-barr.EBay.Sun.COM Address: 150.100.254.2 Name: [127.0.0.1] Address: 127.0.0.1 For SunOS machines, you should request a PTR record, and reverse the address: > set type=ptr > 1.0.0.127.in-addr.arpa Server: sun-barr.EBay.Sun.COM Address: 150.100.254.2 1.0.0.127.in-addr.arpa host name = localhost.Sun.COM
=========================================================== Here are a coupl more interesting replies:
You're probably running a newer bind server. You can either:
1. Do the lookup as 1.150.120.199.in-addr.arpa (looking for a ptr record), or 2. Recompile BIND with the INVQ option set (in the conf/options.h file).
==========================================================
I don't know why it failed on your SunOS 4.1.3, but it works fine on ours.
=============================================
Thanks to:
Yizhong Zhou Christopher M. Conway Reto Lichtensteiger
--Boundary_(ID_ybhB9ILJnHGsr1sE59rqTw)--