|
|
|
|
|
|
| Author |
Message |
Dave Evans *nix forums beginner
Joined: 20 Mar 2006
Posts: 39
|
Posted: Fri Jul 21, 2006 7:19 am Post subject:
Re: Perl Help - easy one
|
|
|
On Fri, Jul 21, 2006 at 07:54:24AM +0100, Peter Bowyer wrote:
Or, if you're not so fussed about the details (e.g. if you don't mind not
being able to control the timeout, or being able to detect the difference
between different types of error), then just use the built-in gethostbyaddr():
use Socket qw( inet_aton AF_INET );
my $hostname = gethostbyaddr(inet_aton($ip_address), AF_INET);
Net::DNS is more thorough, but harder work of course.
--
Dave Evans
Power Internet
PGP key: http://powernet.co.uk/~davide/pgpkey |
|
| Back to top |
|
 |
Peter Bowyer *nix forums Guru
Joined: 27 Jan 2005
Posts: 340
|
|
| Back to top |
|
 |
Marc Perkel *nix forums Guru
Joined: 27 Jan 2005
Posts: 502
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Dec 04, 2008 6:58 am | All times are GMT
|
|
Mortgage | Mortgage Calculator | Mortgage | Loans | Current Accounts
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|