Re: [exim] AAAA Lookup despite primary_hostname being set in…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Marc Haber
CC: exim-users
Betreff: Re: [exim] AAAA Lookup despite primary_hostname being set in configuration
On Sat, 12 Apr 2008, Marc Haber wrote:
>
> In some situations, I find the system sending out an AAAA query to the
> DNS resolver for the local host name when exim starts up. stracing
> exim nailed this down to a gethostbyname2 call with AF_INET6 for the
> local host name.
>
> I'd like to know how I can make exim refrain from doing this lookup.
> Is this possible from configuration, and why is the lookup done in the
> first place?


Exim calls gethostbyname2 in two places.

In readconf_main(), if primary_hostname is unset and the system's hostname
obtained from uname() does not contain a dot, Exim needs to turn the bare
hostname into an FQDN. This should not be happening in your case.

In host_find_byname() Exim is trying to find the IP addresses of a host,
usually for routing purposes.

You need to pin down what part of your config is causing the lookup.
You'll probably end up needing to work out why your resolver is doing
a DNS lookup instead of using /etc/hosts or some other non-network
resolution.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}