The Net::DNS module wraps much of that for you - no need to rewrite all of it. After the Net::DNS docs:
, minimally, oruse Net::DNS; my @mx = mx($domain);
which allows for error handling and other tricks.use Net::DNS; my $resolvewr = Net::DNS::Resolver->new(); my @mx = mx $resolver, $domain;
After Compline,
Zaxo
In reply to Re: MX Record Lookups
by Zaxo
in thread MX Record Lookups
by Gerard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |