Matt Mossholder on 12 Jan 2009 13:42:19 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] slightly off topic: Reverse IP domain lookup


----- "Jon Bringhurst" <jon@bringhurst.org> wrote:

> Unfortunately, it's not a simple task. A simple reverse dns lookup
> will only return an in-addr.arpa PTR record for the IP. To find all A
> and CNAME records, you'd need access to the dns server the domain is
> hosted off of. You might have some luck with a little command line
> tool known as "dig".
> 
> -Jon
> 

It's actually worse than that, if you want to look across domains. You would need to check all the domains that might point to the IP, which theoretically, is "all of them" :)

If you have appropriate access to the system via DNS, you can dump out domains with nslookup or dig (e.g. the "ls" command in nslookup). Another option is to grep the zone files on the server.

     --Matt Mossholder 

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug