Gentoo Archives: gentoo-user

From: reader@×××××××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [OT DNS] common way to discover nameservers for an IP
Date: Wed, 04 Apr 2007 00:42:56
Message-Id: 87ejn1ht94.fsf@newsguy.com
In Reply to: RE: [gentoo-user] [OT DNS] common way to discover nameservers for an IP by Adam Carter
1 "Adam Carter" <Adam.Carter@×××××××××.au> writes:
2
3 >> I know I've once known and used a command that listed the nameservers
4 >> serving a given IP.
5 >>
6 >> I don't remember if it was nslookup, host, dig or what but not finding
7 >> it in those various man pages.
8 >
9 > I have made a different assumtion about what your question means than
10 > other posters - assuming you want to find which nameserver is hosting
11 > the reverse lookup zone, with gentoo.org's IP address as an example;
12 >
13 > adam@rix ~ $ host gentoo.org
14 > gentoo.org has address 204.74.99.100
15 > gentoo.org mail is handled by 10 mail.gentoo.org.
16 > gentoo.org mail is handled by 40 mx2.gentoo.org.
17 >
18 > So to find out who's hosting the reverse record for 204.74.99.100 we
19 > reverse the first three octets and add in.addr.arpa, ie;
20 >
21 > adam@rix ~ $ host -t NS 99.74.202.in-addr.arpa.
22 > 99.74.202.in-addr.arpa name server hk-dns1.hk.prserv.net.
23 > 99.74.202.in-addr.arpa name server hk-dns2.hk.prserv.net.
24
25 Nice trick and thanks for the info... I was looking for something like
26
27 dig NS -x $IP posted by Boyd and the nslookup posted by Uwe T.
28
29 --
30 gentoo-user@g.o mailing list