public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  [OT DNS] common way to discover nameservers for an IP
@ 2007-04-02  4:16 reader
  2007-04-02 10:54 ` Boyd Stephen Smith Jr.
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: reader @ 2007-04-02  4:16 UTC (permalink / raw
  To: gentoo-user

I know I've once known and used a command that listed the nameservers
serving a given IP.

I don't remember if it was nslookup, host, dig or what but not finding
it in those various man pages.

I know there are online sites that will do it, but does anyone know a
command line tool that gives that information once given the right syntax?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  [OT DNS] common way to discover nameservers for an IP
  2007-04-02  4:16 [gentoo-user] [OT DNS] common way to discover nameservers for an IP reader
@ 2007-04-02 10:54 ` Boyd Stephen Smith Jr.
  2007-04-02 11:00 ` [gentoo-user] " Remy Blank
  2007-04-02 11:10 ` Alexander Skwar
  2 siblings, 0 replies; 10+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-04-02 10:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

On Sunday 01 April 2007, reader@newsguy.com wrote about '[gentoo-user]  [OT 
DNS] common way to discover nameservers for an IP':
> I know I've once known and used a command that listed the nameservers
> serving a given IP.
>
> I don't remember if it was nslookup, host, dig or what but not finding
> it in those various man pages.

You probably want:
dig NS -x $IP

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02  4:16 [gentoo-user] [OT DNS] common way to discover nameservers for an IP reader
  2007-04-02 10:54 ` Boyd Stephen Smith Jr.
@ 2007-04-02 11:00 ` Remy Blank
  2007-04-02 11:10 ` Alexander Skwar
  2 siblings, 0 replies; 10+ messages in thread
From: Remy Blank @ 2007-04-02 11:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

reader@newsguy.com wrote:
> I know I've once known and used a command that listed the nameservers
> serving a given IP.

dig -x 123.45.67.89

HTH.
-- Remy


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02  4:16 [gentoo-user] [OT DNS] common way to discover nameservers for an IP reader
  2007-04-02 10:54 ` Boyd Stephen Smith Jr.
  2007-04-02 11:00 ` [gentoo-user] " Remy Blank
@ 2007-04-02 11:10 ` Alexander Skwar
  2007-04-02 11:40   ` Alan McKinnon
                     ` (2 more replies)
  2 siblings, 3 replies; 10+ messages in thread
From: Alexander Skwar @ 2007-04-02 11:10 UTC (permalink / raw
  To: gentoo-user

reader@newsguy.com <reader@newsguy.com> wrote:

> I know I've once known and used a command that listed the nameservers
> serving a given IP.

What do you with that? There's no such thing - any nameserver _can_
return any IP.

> I know there are online sites that will do it, 

Like?

Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02 11:10 ` Alexander Skwar
@ 2007-04-02 11:40   ` Alan McKinnon
  2007-04-02 12:24     ` James
  2007-04-02 13:11   ` Uwe Thiem
  2007-04-04  0:18   ` reader
  2 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2007-04-02 11:40 UTC (permalink / raw
  To: gentoo-user

On Monday 02 April 2007, Alexander Skwar wrote:
> reader@newsguy.com <reader@newsguy.com> wrote:
> > I know I've once known and used a command that listed the
> > nameservers serving a given IP.
>
> What do you with that? There's no such thing - any nameserver _can_
> return any IP.

He's actually after the NS record from the authoritative server for the 
zone, but doesn't have the FQDN yet, only an IP. The answer he'll get 
from dig is necessarily fuzzy, but hey, them's the breaks


alan

-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02 11:40   ` Alan McKinnon
@ 2007-04-02 12:24     ` James
  0 siblings, 0 replies; 10+ messages in thread
From: James @ 2007-04-02 12:24 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan <at> linuxholdings.co.za> writes:

> 
> On Monday 02 April 2007, Alexander Skwar wrote:
> > reader <at> newsguy.com <reader <at> newsguy.com> wrote:
> > > I know I've once known and used a command that listed the
> > > nameservers serving a given IP.
> >
> > What do you with that? There's no such thing - any nameserver _can_
> > return any IP.
> 
> He's actually after the NS record from the authoritative server for the 
> zone, but doesn't have the FQDN yet, only an IP. The answer he'll get 
> from dig is necessarily fuzzy, but hey, them's the breaks


Maybe he curious about query's starting at the root servers? For example:



dig @A.ROOT-SERVERS.net gentoo.org




hth,
James

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02 11:10 ` Alexander Skwar
  2007-04-02 11:40   ` Alan McKinnon
@ 2007-04-02 13:11   ` Uwe Thiem
  2007-04-04  0:32     ` reader
  2007-04-04  0:18   ` reader
  2 siblings, 1 reply; 10+ messages in thread
From: Uwe Thiem @ 2007-04-02 13:11 UTC (permalink / raw
  To: gentoo-user

On 02 April 2007, Alexander Skwar wrote:
> reader@newsguy.com <reader@newsguy.com> wrote:
> > I know I've once known and used a command that listed the nameservers
> > serving a given IP.
>
> What do you with that? There's no such thing - any nameserver _can_
> return any IP.

Authoritative answers can only be obtained from name servers responsible for 
that particular domain.

nslookup
server xxx.yyy.zzz.ttt           (insert any name server kown to you)
set type=ns
domain.in.question

Uwe

-- 
A fast and easy generator of fractals for KDE:
http://www.SysEx.com.na/iwy-1.0.tar.bz2
Proof of concept of a TSP solver for KDE:
http://www.SysEx.com.na/epat-0.1.tar.bz2
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [gentoo-user]  [OT DNS] common way to discover nameservers for  an IP
@ 2007-04-02 13:11 Adam Carter
  0 siblings, 0 replies; 10+ messages in thread
From: Adam Carter @ 2007-04-02 13:11 UTC (permalink / raw
  To: gentoo-user

> I know I've once known and used a command that listed the nameservers
> serving a given IP.
> 
> I don't remember if it was nslookup, host, dig or what but not finding
> it in those various man pages.

I have made a different assumtion about what your question means than
other posters - assuming you want to find which nameserver is hosting
the reverse lookup zone, with gentoo.org's IP address as an example;

adam@rix ~ $ host gentoo.org
gentoo.org has address 204.74.99.100
gentoo.org mail is handled by 10 mail.gentoo.org.
gentoo.org mail is handled by 40 mx2.gentoo.org.

So to find out who's hosting the reverse record for 204.74.99.100 we
reverse the first three octets and add in.addr.arpa, ie;

adam@rix ~ $ host -t NS 99.74.202.in-addr.arpa.
99.74.202.in-addr.arpa name server hk-dns1.hk.prserv.net.
99.74.202.in-addr.arpa name server hk-dns2.hk.prserv.net.

Rgs,
Adam
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02 11:10 ` Alexander Skwar
  2007-04-02 11:40   ` Alan McKinnon
  2007-04-02 13:11   ` Uwe Thiem
@ 2007-04-04  0:18   ` reader
  2 siblings, 0 replies; 10+ messages in thread
From: reader @ 2007-04-04  0:18 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar <listen@alexander.skwar.name> writes:

> reader@newsguy.com <reader@newsguy.com> wrote:
>
>> I know I've once known and used a command that listed the nameservers
>> serving a given IP.
>
> What do you with that? There's no such thing - any nameserver _can_
> return any IP.
>
>> I know there are online sites that will do it, 
>
> Like?
I guess your response represents economy of effort at its best eh?

Try this:
http://www.dnsstuff.com/tools/traversal.ch?domain=www.gentoo.org..&type=A

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: [OT DNS] common way to discover nameservers for an IP
  2007-04-02 13:11   ` Uwe Thiem
@ 2007-04-04  0:32     ` reader
  0 siblings, 0 replies; 10+ messages in thread
From: reader @ 2007-04-04  0:32 UTC (permalink / raw
  To: gentoo-user

Uwe Thiem <uwix@iway.na> writes:

> On 02 April 2007, Alexander Skwar wrote:
>> reader@newsguy.com <reader@newsguy.com> wrote:
>> > I know I've once known and used a command that listed the nameservers
>> > serving a given IP.
>>
>> What do you with that? There's no such thing - any nameserver _can_
>> return any IP.
>
> Authoritative answers can only be obtained from name servers responsible for 
> that particular domain.
>
> nslookup
> server xxx.yyy.zzz.ttt           (insert any name server kown to you)
> set type=ns
> domain.in.question

Thanks... and  I think that is the one I was remembering.  But now I
see the dig syntax:

  dig NS -x $IP (thanks for that Boyd) it is quicker and more informative.   

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-04-04  0:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02  4:16 [gentoo-user] [OT DNS] common way to discover nameservers for an IP reader
2007-04-02 10:54 ` Boyd Stephen Smith Jr.
2007-04-02 11:00 ` [gentoo-user] " Remy Blank
2007-04-02 11:10 ` Alexander Skwar
2007-04-02 11:40   ` Alan McKinnon
2007-04-02 12:24     ` James
2007-04-02 13:11   ` Uwe Thiem
2007-04-04  0:32     ` reader
2007-04-04  0:18   ` reader
  -- strict thread matches above, loose matches on Subject: below --
2007-04-02 13:11 [gentoo-user] " Adam Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox