Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Reliable FQDN from IP

by marto (Bishop)
on Nov 07, 2012 at 12:50 UTC ( #1002670=note: print w/ replies, xml ) Need Help??

in reply to Reliable FQDN from IP

Net::Domain is core:

use strict; use warnings; use Net::Domain qw( hostfqdn ); my $host = hostfqdn(); print "$host\n";

Tested under Solaris, Perl 5.8.8

Update: Obviously this is for the current host, sorry if this doesn't actually answer the question. I'll never post another node while waiting for a hospital appointment to start.

Comment on Re: Reliable FQDN from IP
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002670]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-11-26 13:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (700 votes), past polls