Re: exim, local resolver, host name lookups and IPv6
On Fri, Apr 11, 2008 at 04:41:26PM +0200, Marc Haber <firstname.lastname@example.org> wrote:
> Exim has the habit of trying to find out about its host names and IP
> addresses when it starts up. This has, in the past, been an issue for
> the Debian packages, since a Debian system might be on a
> dial-on-demand modem line with expensive costs and thus should not do
> unnecessary DNS lookup when the MTA is started.
The main question to be able to answer your question correctly is:
what does it need these information for ?
The alternate question being: Does it really need this information from
Host name can be returned by gethostname(2), for example, and you can
add the result from getdomainname(2) for an FQDN.
IP address could be taken from network interfaces configuration, too.