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

Re: [OT] Utility to lookup hosts on an IP address



On Sun, Aug 03, 2003 at 01:47:37PM +0000, Hall Stevenson wrote:
> Is there a tool along the lines of nslookup, dig, host, and so on that
> can list what websites, i.e. domain names, are hosted on a particular IP
> address ??

No. The host command will tell you what the reverse name of an IP
address is:

  $ host www.rudedog.org
  www.rudedog.org         CNAME   gw.rudedog.org
  gw.rudedog.org          A       206.124.142.242
  $ host 206.124.142.242
  Name: dsl-142-242.sea.blarg.net
  Address: 206.124.142.242

However, there is no way to figure out that 206.124.142.242 is
www.rudedog.org, www.chezcarrigan.com, gallery.chezcarrigan.com, etc.

The only feasible way to do that would be to transfer every single DNS
zone on the known internet(*) and find the A records that pointed to
206.124.142.242, and even then, that wouldn't tell you exactly what you
want to know.

Note that Apache's mod_info can tell you all of the virtual hosts on a
single IP, but the Apache admin would first have to enable it and second
would have to be stupid (or brave) enough to allow access to it on the
public internet.

(*) This is an exercise left for the reader.

-- 
Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL



Reply to: