Gentoo Archives: gentoo-user

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

Replies