Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!news.mathworks.com!hookup!news.nstn.ca!pirate.yohoho.org!digdon
From: digdon@yohoho.org (Mike Digdon)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Lookup problems
Date: 14 Apr 1996 01:04:15 GMT
Organization: Yohoho and a bottle of rum
Lines: 24
Message-ID: <4kpiuf$hpv@news.nstn.ca>
NNTP-Posting-Host: ts2-10.ott.istar.ca
X-Newsreader: TIN [version 1.2 PL2]
I am having a problem with sendmail and name lookups.
In my /etc/host.conf file, I have the following entries:
hosts
bind
This obviously means check the /etc/hosts file first, and then go through
named.
In my /etc/hosts file, I have the following entry:
137.186.184.254 pirate.yohoho.org pirate
Now, when I do a ping of pirate.yohoho.org, it properly gets the name/number
from the hosts file. I know this because my resolv.conf points to 2
nameservers that require a ppp connection to get to, and I did the test with
no connection.
However, when I try to send mail to user@pirate.yohoho.org, sendmail says
that it can't lookup the name of the host. What's going on here? Ping gets
the name/number from the hosts file, but sendmail doesn't. Why?
--
*** Mike Digdon - digdon@yohoho.org ***
"Real Programmers never work nine to five."