From owner-freebsd-bugs Fri Mar 1 15:10:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C3C0C37B400 for ; Fri, 1 Mar 2002 15:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g21NA1v99888; Fri, 1 Mar 2002 15:10:01 -0800 (PST) (envelope-from gnats) Date: Fri, 1 Mar 2002 15:10:01 -0800 (PST) Message-Id: <200203012310.g21NA1v99888@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Michael Wardle Subject: Re: misc/35400: sysinstall could improve manipulation of /etc/hosts Reply-To: Michael Wardle Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/35400; it has been noted by GNATS. From: Michael Wardle To: Makoto Matsushita Cc: bug-followup@FreeBSD.org Subject: Re: misc/35400: sysinstall could improve manipulation of /etc/hosts Date: Fri, 1 Mar 2002 15:05:16 -0800 (PST) --- Makoto Matsushita wrote: > > michael> If sysinstall does not currently do this (perhaps it's a > michael> special case for a null domain), it should be updated to use > michael> the suggested /etc/hosts format. > > What "use the suggested /etc/hosts format" mean? The format hosts(5) mentions (not very clearly, tho) is IP number | full host name | short host name/aliases > IMHO, I *don't* think that followings are good ideas: > > 1) if user doesn't specify domainname, sysinstall assumes that > pre-defined default domainname, is selected. > > 2) if user doesn't specify domainname, sysinstall warns with a dialog > that "you have to set a domain-part of your hostname." I think I entered an empty domain for my home network, and it asked me whether I would like to add an entry with a terminal dot, so it's already doing something similar. When it does do this, I am saying it should put both the FQDN (i.e. host name with terminal dot) and the short host name on the same line in /etc/hosts. If sysinstall builds /etc/hosts lines in other situations, I would suggest we make sure it's putting the full host name and the short host name on the same line, rather than separate lines for each. Sorry to be so vague. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message