Re: From IP to domain name
"Ivan J. Varzinczak" wrote:
> I'd like to know if someone can give me any sugestions about
> how I can discover the domain name given an IP address. For example,
> if I have the IP address 184.108.40.206, I would like to discover what
> the domain name is, in that case, aol.com.
> I've tried to use nslookup, but I've had some problems in
> setting the servers, because perhaps I'll need the "root" servers on
> internet and it doesn't work very well.
> Thanks in advance!
the 'reverse-name lookup' construct swaps the order of the IP
numbers and appends '.in-addr.arpa' to the end, so that
would be looked up as
and to keep your server from appending any local 'search'
domains (if you're at 'myserver.com' the sought address might
be mangled into '220.127.116.11.in-addr.arpa.myserver.com' if
you don't) then be sure to put the trailing DOT at the end:
Default Server: localhost
[woo. not very informative, there.]
> set q=any
[now we'll get ANY records available.]
18.104.22.168.in-addr.arpa name = www2.aol.com
146.188.205.in-addr.arpa nameserver = dns-01.ns.aol.com
146.188.205.in-addr.arpa nameserver = dns-02.ns.aol.com
dns-01.ns.aol.com internet address = 22.214.171.124
dns-02.ns.aol.com internet address = 126.96.36.199
if you get into setting up your own DNS, you'll get quite
familiar with this stuff. (see 'man named' and 'man named.conf'
for the scoop.)
Their is five errers in this sentance.