Don't forget the /etc/resolv.conf file in your discussion.
I would suggest either giving us an option to define search orders, or to
read the system configuration files (if available) to decide.
Terry Shows
-----Original Message-----
From: exim-users-admin@??? [
mailto:exim-users-admin@exim.org]On
Behalf Of Richard Lithvall
Sent: Wednesday, October 15, 2003 9:41 AM
To: exim-users@???
Subject: Re: [Exim] IP address lookups - opinions wanted
Philip Hazel wrote:
> Instead of just calling gethostbyaddr(), Exim first does a direct DNS
> lookup. If it finds any PTR records, the first is used as the host
> name, and the rest are treated as aliases.
>
> If the DNS lookup yields no data, Exim tries gethostbyaddr() as
> before, in order to search /etc/hosts (if /etc/nsswitch.conf is
> appropriately configured).
In this case you don't honour the order of hosts lookup in
/etc/nsswitch.conf.
(Maybe someone want's to override the DNS-data by adding an /etc/hosts
entry)
/Richard
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##