DNS reverse lookup
Thor Kottelin
thor at anta.net
Tue May 16 18:14:15 UTC 2000
Martin wrote:
> I want to do a
> reverse DNS lookup.
> I have tried to
> use Windows NTs -
> nslookup <ipaddress>.in-addr.arpa
Instead, do nslookup [ipaddress], e.g.:
C:\TEMP>nslookup 204.152.184.101
Server: smtp3.kolumbus.fi
Address: 193.229.0.40
Name: www.isc.org
Address: 204.152.184.101
...and you'll be ready to parse. If you want to append the in-addr.arpa
domain, you also need to invert the octet order as well as specify PTR
records:
C:\TEMP>nslookup -q=ptr 101.184.152.204.in-addr.arpa.
Server: smtp3.kolumbus.fi
Address: 193.229.0.40
Non-authoritative answer:
101.184.152.204.in-addr.arpa name = www.isc.org
184.152.204.in-addr.arpa nameserver = ns-ext.vix.com
184.152.204.in-addr.arpa nameserver = ns1.gnac.com
184.152.204.in-addr.arpa nameserver = db.rc.vix.com
ns-ext.vix.com internet address = 204.152.184.64
ns1.gnac.com internet address = 209.182.195.77
db.rc.vix.com internet address = 204.152.187.21
I'm holding my breath for someone to pop up and say you should use dig
instead. :-)
Thor
--
Plain old email is very insecure. Please make it
a little safer for yourself and me by using PGP.
FAQ: <URL:http://www.pgp.net/pgpnet/pgp-faq/>.
My public keys are available from key servers.
More information about the bind-users
mailing list