Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

exchange in Net::DNS

by vit (Friar)
on Oct 10, 2011 at 14:23 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-26 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found