Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: MX Record Lookups

by Zaxo (Archbishop)
on Dec 10, 2003 at 22:29 UTC ( [id://313902]=note: print w/replies, xml ) Need Help??


in reply to MX Record Lookups

The Net::DNS module wraps much of that for you - no need to rewrite all of it. After the Net::DNS docs:

use Net::DNS; my @mx = mx($domain);
, minimally, or
use Net::DNS; my $resolvewr = Net::DNS::Resolver->new(); my @mx = mx $resolver, $domain;
which allows for error handling and other tricks.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found