App::Netdisco::Util::FastResolver
A set of helper subroutines to support parts of the Netdisco application.
There are no default exports, however the :all tag will export all subroutines.
:all
This method uses a fully asynchronous and high-performance pure-perl stub resolver AnyEvent::DNS.
AnyEvent::DNS
Given a reference to an array of hashes will resolve the IPv4 or IPv6 address in the ip, alias, or device key of each hash into its hostname which will be inserted in the dns key of the hash.
IPv4
IPv6
ip
alias
device
dns
Optionally provide a set of timeout values in seconds which is also the number of resolver attempts. The default is [2,5,5].
[2,5,5]
Returns the supplied reference to an array of hashes with dns values for addresses which resolved.
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.