|more useful options|
Re: Getting the FQDN using Net::Domainby Anonymous Monk
|on Jan 26, 2012 at 02:12 UTC||Need Help??|
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?
You can always use Sys::Hostname?
I see this caused problem for someone, Bug #73410 for libnet