Date: Tue, 2 Jul 1996 21:12:25 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-current@FreeBSD.org (FreeBSD-current users) Subject: Re: cvs commit: src/release/sysinstall config.c Message-ID: <199607021912.VAA12572@uriah.heep.sax.de> In-Reply-To: <199607020912.CAA14084@freefall.freebsd.org> from "Jordan K. Hubbard" at "Jul 2, 96 02:12:37 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607021912.VAA12572>
