Re: [Exim] Opinions sought: byname vs bydns for manualroute

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Yann Golanski
Date:  
À: Philip Hazel
CC: exim-users
Sujet: Re: [Exim] Opinions sought: byname vs bydns for manualroute
--
Quoth Philip Hazel on Tue, Nov 19, 2002 at 10:32:34 +0000
> So, the question is: Should the default for manualroute be changed from
> byname to bydns? This would be an incompatible change. It would cause
> problems for any configuration that relies on the default to look up
> hosts in local sources such as /etc/hosts. On the other hand, it would
> avoid the problem described above. It would also mean that all routers
> and transports use the DNS by default, which is a consistency that I
> should have thought about, but didn't.
>
> Views?


How about playing it safe? If gethostbyname() return NULL then do a
gethostbydns() and see what it returns. Yes, it's slightly unefficent
but will mean that you are still able to fall back on something that
will work and not bounce emails.

--
yann@???                  -=*=-                      www.kierun.org
    PGP:   009D 7287 C4A7 FD4F 1680  06E4 F751 7006 9DE2 6318
    IRC:   nick kierun, server spod.uk.amiganet.org, channel #sanctus
    NNGS:  nick kierun, server nngs.cosmic.org, port 9696.
--
[ Content of type application/pgp-signature deleted ]
--