[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] annoying DNS lookups

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:       IN      PTR     kremvax
                        PTR     moscvax
                        PTR     ihnp4


reply via email to

[Prev in Thread] Current Thread [Next in Thread]