Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Compare Host Names

by Corion (Patriarch)
on Dec 28, 2011 at 22:30 UTC ( [id://945427]=note: print w/replies, xml ) Need Help??


in reply to Compare Host Names

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.

Replies are listed 'Best First'.
Re^2: Compare Host Names
by pileofrogs (Priest) on Dec 28, 2011 at 22:38 UTC

    Yeah, it just seems like my example compare_host_names() function would already exist. And it would probably handle round robin or other things I haven't thought of.

    If it doesn't exist, I'm gonna write it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://945427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found