Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 musing on the Monastery: (13)
As of 2015-11-25 20:17 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 (690 votes), past polls