S
sihyung
Does anybody know how to perform a reverse dns that returns the number
of domains associated with a certain IP? Thanks
of domains associated with a certain IP? Thanks
Does anybody know how to perform a reverse dns that returns the number
of domains associated with a certain IP? Thanks
No.
DNS does not work that way... hint... domains do not have IP numbers.
Uri Guttman said:JB> What the OP means (guess) is that for a given IP address he
wants to JB> get a list of all domains that are hosted on that
address.
JB> The Perl question could be, which CPAN module can be used to
accomplish
why even use a module? the getXXbyXX functions support basic reverse
dns lookups.
Quoth John Bokma said:Tested this, but it doesn't return virtual hosts on a given IP address. No
idea if Net:NS suffers from the same problem.
Quoth John Bokma said:Uri Guttman said:JB> (e-mail address removed) wrote:
(e-mail address removed) wrote:
Does anybody know how to perform a reverse dns that returns the
number of domains associated with a certain IP? Thanks [...]
why even use a module? the getXXbyXX functions support basic reverse
dns lookups.
Tested this, but it doesn't return virtual hosts on a given IP address. No
idea if Net:NS suffers from the same problem.
Well... yes. DNS Doesn't Work Like That. Given an IP address, all you
can do is look it up in .in-addr.arpa., in which case what you get is at
most one PTR to (if you're lucky) the canonical hostname for that
address.
The only way to find all the hostnames that resolve to a given ip is to
trawl the *whole* of the DNS and grep out the appropriate entries. Not
something I'd recommend trying...![]()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.