in reply to Re: Getting the FQDN using Net::Domain
in thread Getting the FQDN using Net::Domain
How exactly?As you can see in my example (and in the bugreport):
mobile:~# head -n2 /etc/resolv.conf domain example.org search intern.example.org example.org mobile:~# python -c 'import socket; print socket.getfqdn();' mobile.example.org mobile:~# hostname -f mobile.example.org mobile:~# perl -e 'use Net::Domain qw/ hostfqdn /; print(hostfqdn . "\ +n");' mobile.intern.example.org mobile:~# perl -e 'use Sys::Hostname; print(hostname . "\n");' mobile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting the FQDN using Net::Domain
by Anonymous Monk on Jan 26, 2012 at 09:37 UTC |