From owner-freebsd-hackers Sun Sep 14 23:50:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA05819 for hackers-outgoing; Sun, 14 Sep 1997 23:50:37 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA05803 for ; Sun, 14 Sep 1997 23:50:34 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA19186 for freebsd-hackers@FreeBSD.ORG; Mon, 15 Sep 1997 08:50:32 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id IAA04665; Mon, 15 Sep 1997 08:43:14 +0200 (MET DST) Message-ID: <19970915084314.IA03797@uriah.heep.sax.de> Date: Mon, 15 Sep 1997 08:43:14 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Subject: Re: Resolver broken? [Was:nfs startup - perhaps it is a problem] References: <199709142148.OAA22603@usr09.primenet.com> <199709150141.CAA26286@awfulhak.demon.co.uk> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 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 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199709150141.CAA26286@awfulhak.demon.co.uk>; from Brian Somers on Sep 15, 1997 02:41:19 +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. -- 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. ;-)