* [9fans] ndb reverse lookup
@ 2004-06-01 14:08 Brantley Coile
2004-06-01 14:25 ` C H Forsyth
0 siblings, 1 reply; 3+ messages in thread
From: Brantley Coile @ 2004-06-01 14:08 UTC (permalink / raw)
To: 9fans
Why can't is do this?
baron% ndb/dnsquery
> 205.185.197.119 ptr
!dns: dns failure
>
When I use debug I get...
baron% ndb/dnsdebug @edsac 205.185.197.119.ptr
1.1: sending to 205.185.197.119/edsac 205.185.197.119.ptr ip
1: rcvd OK from 205.185.197.119 ( can_recurse)
Q: 205.185.197.119.ptr ip
Auth: 0 sec ns A.ROOT-SERVERS.NET
0 sec ns B.ROOT-SERVERS.NET
0 sec ns C.ROOT-SERVERS.NET
0 sec ns D.ROOT-SERVERS.NET
0 sec ns E.ROOT-SERVERS.NET
0 sec ns F.ROOT-SERVERS.NET
0 sec ns G.ROOT-SERVERS.NET
0 sec ns H.ROOT-SERVERS.NET
0 sec ns I.ROOT-SERVERS.NET
0 sec ns J.ROOT-SERVERS.NET
0 sec ns K.ROOT-SERVERS.NET
0 sec ns L.ROOT-SERVERS.NET
0 sec ns M.ROOT-SERVERS.NET
Hint: A.ROOT-SERVERS.NET 5 day 14 hr 48 ip 198.41.0.4
B.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.228.79.201
C.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.33.4.12
D.ROOT-SERVERS.NET 5 day 14 hr 48 ip 128.8.10.90
E.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.203.230.10
F.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.5.5.241
G.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.112.36.4
H.ROOT-SERVERS.NET 5 day 14 hr 48 ip 128.63.2.53
I.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.36.148.17
J.ROOT-SERVERS.NET 5 day 14 hr 48 ip 192.58.128.30
K.ROOT-SERVERS.NET 5 day 14 hr 48 ip 193.0.14.129
L.ROOT-SERVERS.NET 5 day 14 hr 48 ip 198.32.64.12
M.ROOT-SERVERS.NET 5 day 14 hr 48 ip 202.12.27.33
1.2: sending to 198.41.0.4/A.ROOT-SERVERS.NET 205.185.197.119.ptr ip
1: rcvd Nonexistent from 198.41.0.4 (authoritative recurse nx)
Q: 205.185.197.119.ptr ip
Auth: 1 day soa A.ROOT-SERVERS.NET NSTLD.VERISIGN-GRS.COM 2004053101 1800 900 604800 86400
----------------------------
answer 205.185.197.119.ptr 1 day ip negative rcode 3
----------------------------
baron%
Any ideas?
Brantley
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] ndb reverse lookup
2004-06-01 14:08 [9fans] ndb reverse lookup Brantley Coile
@ 2004-06-01 14:25 ` C H Forsyth
2004-06-01 18:15 ` Brantley Coile
0 siblings, 1 reply; 3+ messages in thread
From: C H Forsyth @ 2004-06-01 14:25 UTC (permalink / raw)
To: 9fans
assuming you're not looking for yet another new DNS type that i didn't know about,
the request
baron% ndb/dnsquery
> 205.185.197.119 ptr
isn't quite what you want if you're doing a reverse lookup.
ndb/dnsquery automatically converts an IP address to reverse-lookup form if a dns type
is not given, but you've given a type `ptr' so it doesn't do the transformation.
reverse lookup requires a special form of `name' in the domain in-addr.arpa
that is
ndb/dnsquery
205.185.197.119
will automatically generate a search for
119.197.185.205.in-addr.arpa ptr
which is what the DNS requires.
similarly
ndb/dnsdebug 205.185.197.119
will look for
119.197.185.205.in-addr.arpa ptr
automatically
1.1: sending to 128.8.10.90/d.root-servers.net 119.197.185.205.in-addr.arpa ptr
1: rcvd OK from 128.8.10.90 ( recurse)
Q: 119.197.185.205.in-addr.arpa ptr
Auth: 205.in-addr.arpa 1 day ns chia.ARIN.NET
205.in-addr.arpa 1 day ns dill.ARIN.NET
205.in-addr.arpa 1 day ns henna.ARIN.NET
205.in-addr.arpa 1 day ns indigo.ARIN.NET
205.in-addr.arpa 1 day ns epazote.ARIN.NET
205.in-addr.arpa 1 day ns figwort.ARIN.NET
205.in-addr.arpa 1 day ns ginseng.ARIN.NET
1.4: sending to 128.8.10.90/d.root-servers.net chia.arin.net ip
1: rcvd OK from 128.8.10.90 ( recurse)
Q: chia.arin.net ip
Auth: net 2 day ns A.GTLD-SERVERS.net
net 2 day ns B.GTLD-SERVERS.net
net 2 day ns C.GTLD-SERVERS.net
net 2 day ns D.GTLD-SERVERS.net
net 2 day ns E.GTLD-SERVERS.net
net 2 day ns F.GTLD-SERVERS.net
... and so on for far too long
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] ndb reverse lookup
2004-06-01 14:25 ` C H Forsyth
@ 2004-06-01 18:15 ` Brantley Coile
0 siblings, 0 replies; 3+ messages in thread
From: Brantley Coile @ 2004-06-01 18:15 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 6196 bytes --]
What do I add to /lib/ndb/local1 to get reverse lookups to work?
205.185.197.119 is a machine in borf.com domain. Which is also
the address of the dns server, so edsac has the same IP address.
baron% ndb/dnsdebug @edsac 205.185.197.119
1.1: sending to 205.185.197.119/edsac 119.197.185.205.in-addr.arpa ptr
1.1: sending to 205.185.197.119/edsac 119.197.185.205.in-addr.arpa ptr
1: rcvd Server failed from 205.185.197.119 (authoritative can_recurse)
Q: 119.197.185.205.in-addr.arpa ptr
Auth: 197.185.205.in-addr.arpa 23 hr 59 min 55 ns as1.icg.net
197.185.205.in-addr.arpa 23 hr 59 min 55 ns as2.icg.net
Hint: as1.icg.net 1 day 23 hr 59 ip 170.147.45.163
as2.icg.net 1 day 23 hr 59 ip 170.147.45.164
1.1: sending to 198.41.0.10/J.ROOT-SERVERS.NET 119.197.185.205.in-addr.arpa ptr
1: rcvd OK from 198.41.0.10 ( recurse)
Q: 119.197.185.205.in-addr.arpa ptr
Auth: arpa 6 day ns A.ROOT-SERVERS.NET
arpa 6 day ns H.ROOT-SERVERS.NET
arpa 6 day ns C.ROOT-SERVERS.NET
arpa 6 day ns G.ROOT-SERVERS.NET
arpa 6 day ns F.ROOT-SERVERS.NET
arpa 6 day ns B.ROOT-SERVERS.NET
arpa 6 day ns K.ROOT-SERVERS.NET
arpa 6 day ns L.ROOT-SERVERS.NET
arpa 6 day ns M.ROOT-SERVERS.NET
arpa 6 day ns I.ROOT-SERVERS.NET
arpa 6 day ns E.ROOT-SERVERS.NET
arpa 6 day ns D.ROOT-SERVERS.NET
Hint: A.ROOT-SERVERS.NET 41 day 16 hr ip 198.41.0.4
H.ROOT-SERVERS.NET 41 day 16 hr ip 128.63.2.53
C.ROOT-SERVERS.NET 41 day 16 hr ip 192.33.4.12
G.ROOT-SERVERS.NET 41 day 16 hr ip 192.112.36.4
F.ROOT-SERVERS.NET 41 day 16 hr ip 192.5.5.241
B.ROOT-SERVERS.NET 41 day 16 hr ip 192.228.79.201
K.ROOT-SERVERS.NET 41 day 16 hr ip 193.0.14.129
L.ROOT-SERVERS.NET 41 day 16 hr ip 198.32.64.12
M.ROOT-SERVERS.NET 41 day 16 hr ip 202.12.27.33
I.ROOT-SERVERS.NET 41 day 16 hr ip 192.36.148.17
E.ROOT-SERVERS.NET 41 day 16 hr ip 192.203.230.10
D.ROOT-SERVERS.NET 41 day 16 hr ip 128.8.10.90
1.2: sending to 198.41.0.4/A.ROOT-SERVERS.NET 119.197.185.205.in-addr.arpa ptr
1: rcvd OK from 198.41.0.4 ( recurse)
Q: 119.197.185.205.in-addr.arpa ptr
Auth: 205.in-addr.arpa 1 day ns chia.ARIN.NET
205.in-addr.arpa 1 day ns dill.ARIN.NET
205.in-addr.arpa 1 day ns henna.ARIN.NET
205.in-addr.arpa 1 day ns indigo.ARIN.NET
205.in-addr.arpa 1 day ns epazote.ARIN.NET
205.in-addr.arpa 1 day ns figwort.ARIN.NET
205.in-addr.arpa 1 day ns ginseng.ARIN.NET
1.5: sending to 205.185.197.119/edsac chia.arin.net ip
1: rcvd OK from 205.185.197.119 ( can_recurse)
Q: chia.arin.net ip
Ans: chia.arin.net 1 day 23 hr 59 ip 192.5.6.32
Auth: arin.net 1 day 23 hr 59 ns aloe.arin.net
arin.net 1 day 23 hr 59 ns b3.nstld.com
arin.net 1 day 23 hr 59 ns c3.nstld.com
arin.net 1 day 23 hr 59 ns chia.arin.net
arin.net 1 day 23 hr 59 ns d3.nstld.com
arin.net 1 day 23 hr 59 ns dill.arin.net
arin.net 1 day 23 hr 59 ns epazote.arin.net
arin.net 1 day 23 hr 59 ns figwort.arin.net
Hint: aloe.arin.net 1 day 23 hr 59 ip 192.12.94.32
b3.nstld.com 1 day 23 hr 59 ip 192.33.14.32
c3.nstld.com 1 day 23 hr 59 ip 192.26.92.32
chia.arin.net 1 day 23 hr 59 ip 192.5.6.32
d3.nstld.com 1 day 23 hr 59 ip 192.31.80.32
dill.arin.net 1 day 23 hr 59 ip 192.35.51.32
epazote.arin.net 1 day 23 hr 59 ip 192.41.162.32
figwort.arin.net 1 day 23 hr 59 ip 192.42.93.32
1.3: sending to 192.5.6.32/chia.arin.net 119.197.185.205.in-addr.arpa ptr
1: rcvd OK from 192.5.6.32 ( recurse)
Q: 119.197.185.205.in-addr.arpa ptr
Auth: 197.185.205.in-addr.arpa 1 day ns as1.icg.net
197.185.205.in-addr.arpa 1 day ns as2.icg.net
1.6: sending to 205.185.197.119/edsac as1.icg.net ip
1: rcvd OK from 205.185.197.119 ( can_recurse)
Q: as1.icg.net ip
Ans: as1.icg.net 1 day 23 hr 59 ip 170.147.45.163
Auth: icg.net 1 day 23 hr 59 ns as1.icg.net
icg.net 1 day 23 hr 59 ns as2.icg.net
Hint: as1.icg.net 1 day 23 hr 59 ip 170.147.45.163
as2.icg.net 1 day 23 hr 59 ip 170.147.45.164
1.4: sending to 170.147.45.163/as1.icg.net 119.197.185.205.in-addr.arpa ptr
1: rcvd Server failed from 170.147.45.163 ( recurse can_recurse)
Q: 119.197.185.205.in-addr.arpa ptr
1.4: sending to 170.147.45.164/as2.icg.net 119.197.185.205.in-addr.arpa ptr
1: rcvd Server failed from 170.147.45.164 ( recurse can_recurse)
Q: 119.197.185.205.in-addr.arpa ptr
baron%
[-- Attachment #2: Type: message/rfc822, Size: 4084 bytes --]
From: C H Forsyth <forsyth@vitanuova.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ndb reverse lookup
Date: Tue, 1 Jun 2004 15:25:51 +0100
Message-ID: <1ed1feb624a20a068ff048ececb23475@vitanuova.com>
assuming you're not looking for yet another new DNS type that i didn't know about,
the request
baron% ndb/dnsquery
> 205.185.197.119 ptr
isn't quite what you want if you're doing a reverse lookup.
ndb/dnsquery automatically converts an IP address to reverse-lookup form if a dns type
is not given, but you've given a type `ptr' so it doesn't do the transformation.
reverse lookup requires a special form of `name' in the domain in-addr.arpa
that is
ndb/dnsquery
205.185.197.119
will automatically generate a search for
119.197.185.205.in-addr.arpa ptr
which is what the DNS requires.
similarly
ndb/dnsdebug 205.185.197.119
will look for
119.197.185.205.in-addr.arpa ptr
automatically
1.1: sending to 128.8.10.90/d.root-servers.net 119.197.185.205.in-addr.arpa ptr
1: rcvd OK from 128.8.10.90 ( recurse)
Q: 119.197.185.205.in-addr.arpa ptr
Auth: 205.in-addr.arpa 1 day ns chia.ARIN.NET
205.in-addr.arpa 1 day ns dill.ARIN.NET
205.in-addr.arpa 1 day ns henna.ARIN.NET
205.in-addr.arpa 1 day ns indigo.ARIN.NET
205.in-addr.arpa 1 day ns epazote.ARIN.NET
205.in-addr.arpa 1 day ns figwort.ARIN.NET
205.in-addr.arpa 1 day ns ginseng.ARIN.NET
1.4: sending to 128.8.10.90/d.root-servers.net chia.arin.net ip
1: rcvd OK from 128.8.10.90 ( recurse)
Q: chia.arin.net ip
Auth: net 2 day ns A.GTLD-SERVERS.net
net 2 day ns B.GTLD-SERVERS.net
net 2 day ns C.GTLD-SERVERS.net
net 2 day ns D.GTLD-SERVERS.net
net 2 day ns E.GTLD-SERVERS.net
net 2 day ns F.GTLD-SERVERS.net
... and so on for far too long
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-01 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-01 14:08 [9fans] ndb reverse lookup Brantley Coile
2004-06-01 14:25 ` C H Forsyth
2004-06-01 18:15 ` Brantley Coile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).