|
From: | Lyndon Nerenberg |
Subject: | Re: [Nmh-workers] annoying DNS lookups |
Date: | Thu, 12 May 2011 10:17:30 -0700 (PDT) |
User-agent: | Alpine 1.10 (OSX 962 2008-03-14) |
It seems that getaddrinfo tries to lookup the IPv4 address of the hostname and then do a reverse lookup to get the FQDN but doesn't find it in /etc/hosts (because the system is v6 only) and thus goes on asking the DNS.
nmh should be using gethostname(3) to derive the "official" local host name. You cannot accurately determine the local host name from the DNS. Consider:
1.0.0.127 IN PTR kremvax PTR moscvax PTR ihnp4 --lyndon
[Prev in Thread] | Current Thread | [Next in Thread] |