*BSD News Article 69378


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!usenet.etri.re.kr!news.kreonet.re.kr!bofh.dot!usenet.seri.re.kr!bofh.dot!news.cais.net!bofh.dot!news.mathworks.com!news.kei.com!nntp.coast.net!fu-berlin.de!news.dfn.de!news.ruhr-uni-bochum.de!news.uni-stuttgart.de!uni-regensburg.de!newsserv.uni-bayreuth.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.mail.sendmail,comp.unix.bsd.freebsd.misc
Subject: Re: Q: how to use sendmail with /etc/hosts
Date: 24 May 1996 21:13:45 GMT
Organization: Private BSD site, Dresden
Lines: 28
Message-ID: <4o58q9$n9l@uriah.heep.sax.de>
References: <4nuen6$83d@dortmund.germany.eu.net> <4nulm3$ja5@sidhe.hsc.fr>
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
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.mail.sendmail:28044 comp.unix.bsd.freebsd.misc:20034

roberto@keltia.freenix.fr (Ollivier Robert) wrote:

> Use the following lines in your .mc file:
> 
> FEATURE(nodns)
> FEATURE(nocanonify)
> 
> That will prevent DNS lookups. 

In addition, make your /etc/hosts hostnames look like FQDN's:

192.168.1.2	foo.bar.do.main		foo
192.168.1.3	mumble.bar.do.main	mumble

as opposed to

192.168.1.2	foo		foo.bar.do.main
192.168.1.3	mumble		mumble.bar.do.main

Name ordering in /etc/hosts _is_ important for the results of
gethostby<mumble>() requests.

-- 
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. ;-)