Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Compare Host Namesby Corion (Patriarch) |
on Dec 28, 2011 at 22:30 UTC ( [id://945427]=note: print w/replies, xml ) | Need Help?? |
If doing serial lookups is enough for you, simply checking the results of gethostbyname should work, except for the problem of round-robin DNS. As an alternative, the DNS modules (for example, AnyEvent::DNS) can do more lookups and in parallel. With those, you can possibly get all names for hostname entries, at least the synopsis of AnyEvent::DNS suggests so.
In Section
Seekers of Perl Wisdom
|
|