|We don't bite newbies here... much|
Reliable FQDN from IPby agentorange (Sexton)
|on Nov 07, 2012 at 12:09 UTC||Need Help??|
agentorange has asked for the
wisdom of the Perl Monks concerning the following question:
Using 5.8.8 and due to tight control of our software stacks I cannot make use of non-core Perl modules.
I'm looking for a reliable method of returning the FQDN from an IP but using gethostbyaddr() is not reliable as it'll query /etc/hosts first which matches short hostname and the FQDN returned maybe an alias.
I cannot use Net::Nslookup or Net::DNS and am loathed to call `nslookup` if I can make use of a nice neat Perl module that'll do what I want.
Am I resigned to a system call or can I force gethostbyaddr() to use BIND or another core module to return the FQDN?