From owner-freebsd-current Tue Jul 2 12:22:04 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA02378 for current-outgoing; Tue, 2 Jul 1996 12:22:04 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA02365 for ; Tue, 2 Jul 1996 12:21:51 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id VAA07125 for ; Tue, 2 Jul 1996 21:21:42 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id VAA04084 for freebsd-current@FreeBSD.org; Tue, 2 Jul 1996 21:21:42 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id VAA12572 for freebsd-current@FreeBSD.org; Tue, 2 Jul 1996 21:12:25 +0200 (MET DST) From: J Wunsch Message-Id: <199607021912.VAA12572@uriah.heep.sax.de> Subject: Re: cvs commit: src/release/sysinstall config.c To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Tue, 2 Jul 1996 21:12:25 +0200 (MET DST) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199607020912.CAA14084@freefall.freebsd.org> from "Jordan K. Hubbard" at "Jul 2, 96 02:12:37 am" 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 X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Jordan K. Hubbard wrote: > jkh 96/07/02 02:12:37 > > Modified: release/sysinstall config.c > Log: > Add an extra /etc/hosts entry per advice of Joerg. One should note that this is a workaround for something that looks like a resolver bug to me. Several daemons (among them sendmail and httpd) apparently do something like: char hname[VERYLONG], *absname; struct hostent *me; gethostname(hname, VERYLONG); /* Get my name. */ absname = strdup(hname); strcat(absname, "."); /* Force it into the root domain. */ if ((me = gethostbyname(absname)) == 0) { complain("Myname (%s) does not exist.", hname); bailout(); } This works fine as long as DNS is in effect. If however /etc/hosts is queried to resolve myname, this fails if there's no entry available _with_ the trailing dot. -- 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. ;-)