reassign 275024 perl-modules retitle 275024 Net::Domain::hostfqdn() pointlessly looks in DNS quit
* Tore Anderson > I am now fairly confident that this is a bug / misdesign of > Net::Domain and that it should therefore be reassigned to > perl-modules. I'll await your feedback before doing so, though. * Finn-Arne Johansen > Seems correct. You reassign then ? Yes. Brendan: An executive summary of this bug is that Net::Domain::hostfqdn() seems to insist on looking in DNS even though it has everything it needs in /etc/hosts. Also, what it looks for in DNS seems to be a few more or less bizarre concatination of (parts of) the hostname as returned by uname(2) and the search domains - sometimes several at the same time. It does however return the correct fully-qualified host name in the end. The submitter had problems installing "munin-node" as part of Debian-Edu, as the DNS server isn't configured properly when munin-node is configured. It calls the Net::Domain::hostfqdn() function quite a lot of times, and the unconfigured DNS server ends up waiting for some timeout every time the function asks the superfluous queries. Finn-Arne: I will discuss with upstream whether we should try a method such as perl -MSys::Hostname -e 'print((gethostbyname(hostname()))[0],"\n")' before falling back on Net::Domain. This seems to work better, and mimics more closely the behaviour of "/bin/hostname --fqdn" (no DNS lookups). Not sure if that will make it into the 1.2.x stable branch, though, which at the moment seems the most likely to make it into Sarge. (On the other hand, 1.0.x did so for a long time as well...) Thanks, -- Tore Anderson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]