*BSD News Article 66154


Return to BSD News archive

#! rnews 1716 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!gatech!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!uni-erlangen.de!news.tu-chemnitz.de!News.HTWM.De!news.HRZ.HAB-Weimar.DE!news.uni-jena.de!news.uni-leipzig.de!news1.urz.tu-dresden.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Lookup problems
Date: 14 Apr 1996 17:50:05 GMT
Organization: Private FreeBSD site, Dresden
Lines: 32
Message-ID: <4krdsd$7el@uriah.heep.sax.de>
References: <4kpiuf$hpv@news.nstn.ca>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6

digdon@yohoho.org (Mike Digdon) writes:
>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.

Except for sendmail.

Sendmail bypasses the resolver library, since it tries to canonify
each destination host (i.e., resolve CNAMEs).

You gotta write:

FEATURE(nodns)
FEATURE(nocanonify)

in your /usr/src/usr.sbin/sendmail/cf/cf/mymachine.mc file, recompile
mymachine.cf from it, and install it as /etc/sendmail.cf.

(The sendmail config files are available in a separate source
distribution, if you don't already have full sources.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)