From owner-freebsd-hackers Mon Sep 15 00:23:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA07951 for hackers-outgoing; Mon, 15 Sep 1997 00:23:53 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA07937 for ; Mon, 15 Sep 1997 00:23:48 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id QAA07512; Mon, 15 Sep 1997 16:53:39 +0930 (CST) Message-ID: <19970915165338.14706@lemis.com> Date: Mon, 15 Sep 1997 16:53:38 +0930 From: Greg Lehey To: Joerg Wunsch Cc: FreeBSD Hackers Subject: Re: Resolver broken? [Was:nfs startup - perhaps it is a problem] References: <199709142148.OAA22603@usr09.primenet.com> <199709150141.CAA26286@awfulhak.demon.co.uk> <19970915084314.IA03797@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <19970915084314.IA03797@uriah.heep.sax.de>; from J Wunsch on Mon, Sep 15, 1997 at 08:43:14AM +0200 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 15, 1997 at 08:43:14AM +0200, J Wunsch wrote: > As Brian Somers wrote: > >> Does it help if you put entries with trailing dots in /etc/hosts ? >> >> 10.0.0.1 my.machine my >> 10.0.0.1 my.machine. my. > > I've once noticed that this did indeed help, yes. But in my case it > was sendmail that complained it didn't find the onw host. I forgot > the details, but i think the /etc/hosts part of the resolver library > is broken with this. Ah, yes, i remember: sendmail apparently tries > to lookup "${hostname}.", i.e. it calls gethostname(2), and appends a > dot to force DNS to not use the search order. The /etc/hosts part of > the resolver library cannot handle this unless the host is listed with > the trailing dot in /etc/hosts. I think this is a bug, and this part > of the resolver library should just remove a trailing dot, to be > (bug-)compatible to the DNS part. Been there, done that. I'd categorize this as a sendmail bug, however. There's nothing in the /etc/hosts world which suggests that a . at the end of a name is legal. Greg