|
NAMENet::DNS::RR::SRV::Helper - Orders SRV records by priority and weight for Net::DNS.VERSIONVersion 0.0.0SYNOPSISuse Net::DNS; use Net::DNS::RR::SRV::Helper; use Data::Dumper; my $query=$res->search("_ldap._tcp.foo.bar", SRV); my @answers=$query->answer; my @ordered=SRVorder(\@answers); if(!defined( $ordered[0] )){ print "No usable records were found.\n"; }else{ print Dumper(\@ordered); } EXPORTSRVorderFUNCTIONSSRVorderThis takes the returned answer array containing Net::DNS::RR::SRV objects and processes them into a new easy to use array of hashes ordered by priority and weight.One item is taken and that is the array returned from the answers method. Upon a error or no records being present, undef is returned. RETURN VALUEThe returned value is a array.Each item of the array is a hash. The keys listed below are used for the hash. serverThis is the server to use.portThis is the port to use for this server.priorityThis is the priority of this server.weightThis is the weight of this server.AUTHORZane C. Bowers, "<vvelox at vvelox.net>"BUGSPlease report any bugs or feature requests to "bug-net-dns-rr-srv-helper at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-DNS-RR-SRV-Helper>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc Net::DNS::RR::SRV::Helper You can also look for information at:
ACKNOWLEDGEMENTSCOPYRIGHT & LICENSECopyright 2010 Zane C. Bowers, all rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |