Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

exchange in Net::DNS

by vit (Pilgrim)
on Oct 10, 2011 at 14:23 UTC ( #930647=perlquestion: print w/ replies, xml ) Need Help??
vit has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
What is the meaning of exchange key in this module? For example in this code
use strict; use Data::Dumper; ######################################### die "INPUT: domain:\n" if (@ARGV != 1); my $domain = $ARGV[0]; ######################################### # Use your own resolver object. use Net::DNS; my $res = Net::DNS::Resolver->new; my @mx = mx($res, $domain); print Dumper (@mx);
for domain yahoo.com I am getting 3 records:
'exchange' => 'mta7.am0.yahoodns.net' 'exchange' => 'mta5.am0.yahoodns.net' 'exchange' => 'mta6.am0.yahoodns.net'


this is related to my question in http://www.perlmonks.org/?node_id=929571

Comment on exchange in Net::DNS
Select or Download Code
Re: exchange in Net::DNS
by Anonymous Monk on Oct 10, 2011 at 14:35 UTC
    I imagine it is the same or similar meaning as described in the related RFC
      Sorry, I do not see any relation

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://930647]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2015-07-04 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls