Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Reverse DNS

created by FryingLizard

(thing) by FryingLizard (1 y) (print)   ?   (I like it!) Tue Aug 08 2000 at 13:19:16

If you have an IP Address, and you wish to know the Domain Name associated with it, you can perform the reverse of the usual DNS process (where you know the name and need the IP address - this is what web browsers do when you type in WWW.EVERYTHING2.COM, for example).

There are many tools to perform a Reverse DNS lookup, but one handy web-based one is at http://www.osilab.ch/services/dns_e.htm

Other handy search services can be found at the very useful http://www.searchgateway.com/finde.htm, or Windows users should get the highly recommended NeoTrace program.


(idea) by JerboaKolinowski (4.4 y) (print)   ?   (I like it!) 1 C! Sun Jun 10 2001 at 13:33:37

If you have nslookup available, and the IP you want to resolve is aa.bb.cc.dd, you can simply type:
     # nslookup -type=PTR dd.cc.bb.aa.in-addr.arpa

(actually, modern implementations of nslookup will do this translation for you, allowing you to just type nslookup aa.bb.cc.dd, but this is less instructive.)

As you might guess from the above, reverse DNS lookup is basically a kludge, ... er, wonderful and forward-thinking piece of design. It works through hierarchical control over the magical in-addr.arpa domain, which is configured in much the same way as a normal .com in the DNS.

For instance, if I want to have my DNS resolve addresses in the 192.168.0.0/16 private address space, I simply tell my copy of bind in named.conf that it is a master for the domain 168.192.in-addr.arpa. I can then put PTR records such as

1.1.168.192.in-addr.arpa. IN PTR mybox.intranet.
1.4                       IN PTR gateway.intranet.        
4.1                       IN PTR dns.intranet.
into the zonefile, causing 192.168.1.1 to resolve as mybox, 192.168.4.1 to resolve as gateway and 192.168.1.4 to resolve as dns

Subdomains sub-subdomains and sub-sub-subdomains of in-addr.arpa (corresponding to class A, class B and class C sized blocks, respectively) are allocated by the IP registries -- RIPE in Europe, for example -- to network operators who are responsible for blocks of IP addresses.

Technically, this happens in much the same way that subdomains of .com are allocated to domain owners - through simple NS records in the master DNS.

A good way to see which network operator is locally responsible for an IP address (because, guess what? they don't always resolve!) is often to resolve the relevant NS records, indicating who runs the name servers for that IP block:

nslookup -type=NS 130.182.195.in-addr.arpa
for example. (Though of course the canonical way to do this is via a whois query on the block at the relevant registry.
whois -h whois.ripe.net 195.182.130
would be the corresponding query.)

I remember once watching a large part of the European end of this fall apart, when some staffer at internic, noticed that RIPE had never actually paid to run the domain ripe.net (which is in the NS records for domains like 195.in-addr.arpa, as well as providing top-level routing information) and purged them from the .net zonefile, to the giddy amusement of all...


printable version
chaos

Finding out where a net user lives in-addr.arpa NeoTrace Round Robin DNS
WINS versus DNS Finding the origin of a Hotmail message PTR record Quotes from sleeping people
Internic nslookup Reverse Prince Albert Bind
reverse lookup ip6.int netgear Localhost
DNS Spoofing address space ♣ kludge
Class C IP address whois reverse temporal justification ripe
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
In the empty mountains
Information War is coming: whose side are you on?
Thoughts on Hate Crimes
Middle English
Invisible Man
The Lovecraftian compulsion to keep writing even as one is being devoured
Neogrammarian
syllogism
Elephant
Picking your nose
Shotgun
Diaspora
Cargo cult
New Writeups
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
Twin Eclipse
Conversations with God: An Uncommon Dialogue(idea)
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
This page courtesy of The Everything Development Company