Re: [exim-dev] Exim doesn't look in /etc/hosts when /etc/re…

Top Page
Delete this message
Reply to this message
Author: Jörg Sommer
Date:  
To: Exim-dev
Subject: Re: [exim-dev] Exim doesn't look in /etc/hosts when /etc/resolv.conf empty
Hello,

On 2010-06-12 00:26, Ted Cooper wrote:
> On 11/06/10 23:27, Jörg Sommer wrote:
> > I've a smarthost in my local network named server.localnet. It's name is
> > resolvable via /etc/hosts; ping works. But there's no DNS server
> > available, hence /etc/resolv.conf is empty. With this setting exim
> > doesn't feed mails to the smarthost. See
> > http://alioth.debian.org/~jo-guest/exim-failure-debug.out
> >
> > But when I set a DNS server that surely doesn't know about
> > server.localnet, exim looks at /etc/hosts, resolves the name and delivers
> > the mail.
>
> I'm not too well versed on what is needed for a working resolver stub on
> your system but /etc/resolv.conf having something valid in it would
> normally be a requirement for it to work at all.


Why do all other components like ping et al. and firefox work?

What's wrong with the idea to lookup the host with host_find_byname(), if
host_find_bydns() returns HOST_FIND_AGAIN? Why the admin might not have
put values in /etc/hosts for the case the DNS is not reachable?

BTW: I've forgot to upload the files, but now I've put them at
<http://alioth.debian.org/~jo-guest>.

Bye, Jörg.
-- 
Ein Optimist ist in der Regel ein Zeitgenosse, der ungenuegend informiert ist.
                                                           (John B. Priestley)