[ale] sendmail and /etc/resolv.conf
Andrew Newton
lfs at eskimo.com
Thu Dec 5 18:08:31 EST 1996
Christopher Fowler wrote:
>
> On my system I have a /etc/resolv.conf and when I do
> host tf500 I get a response. But when I use sendmail to
> send mail to any user on tf500 I get errors such as "host name
> lookup failure". Why could it not look up the hostname if I'm
> able to do nslookup to the roght host. If ne1 has any suggestions I
> would greatly appreciate it.
I believe that sendmail goes around the standard system calls like
gethostbyname() and uses DNS directly... and consequently never checks
a local hosts file. And I believe this is done to get at those
precious MX records that name servers have. This is just a guess, but
I've never been able to get sendmail to understand the hosts file.
--
------------------------------------------------------
Andrew Newton
Andrew.Newton at automatedlogic.com
lfs at eskimo.com
http://www.eskimo.com/~lfs
------------------------------------------------------
More information about the Ale
mailing list