in reply to Getting the FQDN using Net::Domain
why the module behaves this way ?
Um, because that is why? I take the comment at its word :)
# try looking in /etc/resolv.conf # putting this here and assuming that it is correct, eliminates # calls to gethostbyname, and therefore DNS lookups. This helps # those on dialup systems.
So if I see that correctly, relying on an entry in the "search" block is a bit risky, isn't it?
How exactly?
You can always use Sys::Hostname?
I see this caused problem for someone, Bug #73410 for libnet
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Getting the FQDN using Net::Domain
by nickolsen (Initiate) on Jan 26, 2012 at 09:30 UTC | |
by Anonymous Monk on Jan 26, 2012 at 09:37 UTC |
In Section
Seekers of Perl Wisdom