in reply to Retrieving all hostnames for an IP address...
Look at Net::DNS as that should have less overhead than using system or backticks, but keep in mind that your problem (at least as phrased) is unsolvable.
There is one and only one PTR record for a given IP; there can be an unlimited number of A records which all resolve to the same IP (not to mention CNAME aliases). There's no way to get anything other than the PTR address from DNS. If you've got a list of hostnames you could build a mapping on your own, but it's only going to be complete as your list of hostnames.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Retrieving all hostnames for an IP address...
by grinder (Bishop) on Dec 13, 2006 at 18:00 UTC | |
by Fletch (Bishop) on Dec 13, 2006 at 20:07 UTC | |
|
Re^2: Retrieving all hostnames for an IP address...
by jettero (Monsignor) on Dec 13, 2006 at 18:54 UTC |