Re: [exim] Perl Help - easy one

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Peter Bowyer
Date:  
À: Exim, Users
Sujet: Re: [exim] Perl Help - easy one
On 21/07/06, Marc Perkel <marc@???> wrote:
> OK - I'm not a perl programmer - but I'm writing some perl code. I need
> a quick way to get the host name from an IP address. How do I do this?


search.cpan.org is your friend.

http://search.cpan.org/~olaf/Net-DNS-0.58/lib/Net/DNS/Resolver.pm

Don't forget to handle errors, timeouts, 'No Data', CNAMEs (which are
common in the in-addr.arpa zone to handle classless delegation), and
the fact that there may be more than one host name and the order the
multiple ones arrive in isn't necessarily consistent,

Peter

--
Peter Bowyer
Email: peter@???