Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: MX Record Lookups

by rob_au (Abbot)
on Dec 10, 2003 at 22:06 UTC ( #313897=note: print w/replies, xml ) Need Help??

in reply to MX Record Lookups

This can be done a lot easier using other Net::DNS::Packet and Net::DNS::RR methods ...

my $packet = $res->send($domain, 'MX'); foreach my $answer ($packet->answer) { next unless $answer->type eq 'MX'; push @results, $answer->exchange; }

Additionally, depending upon your requirements, it may be worthwhile to return a list of mail exchanges ($answer->exchange) and their respective preferences ($answer->preference).


perl -le "print+unpack'N',pack'B32','00000000000000000000001010011010'"

Replies are listed 'Best First'.
Re: Re: MX Record Lookups
by Gerard (Pilgrim) on Dec 10, 2003 at 22:14 UTC
    hmmmm.... Why couldn't I find that when I was writing the code. I seem to remember pouring over it for quite some time.
    Thanks for your help

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://313897]
[Corion]: Yeah, you can lead them to water, but it's illegal to drown them...
[Discipulus]: Here my solution marto: create a win fake machine insied AD. do a micro fake partition foreach remote partition you wont to monit. put a web server that acept from data from remote systems and full fake partition as needed. fake partition are Mb. ;=)
[marto]: Discipulus yeah, the nuclear industry love fake machines sitting around on a controlled domain :P
[marto]: changing a typo on a website is often a great deal of paper work :P

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-01-24 10:41 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (203 votes). Check out past polls.