Re: [Exim] How to read from /etc/hosts before doing DNS look…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Peter Sanchez
CC: exim-users
題目: Re: [Exim] How to read from /etc/hosts before doing DNS lookup
On Tue, 12 Dec 2000, Peter Sanchez wrote:

> I have tried searching through the archives, and ive tried a few things but I
> still havnt been able to get it to use /etc/hosts before using the MX records.
> I run FreeBSD 4.2 and my /etc/host.conf is set to use /etc/hosts before
> using the DNS servers. I tried adding gethostbyname in the lookuphosts options.
> Here is what I used....
>
> lookuphost:
> driver = lookuphost
> transport = remote_smtp
> gethostbyname = true
>
> but it didnt change anything. Any help would be appreciated!


That should do what you want, but you don't want to do it in general.
You *must* restrict that kind of thing to your own domains. Out in the
Internet at large, you must always look for MX records first.

Test your configuration with -d9 -bt to see what lookups it is doing.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.