From owner-freebsd-bugs Thu Feb 28 3:20: 9 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 37ED437B41A for ; Thu, 28 Feb 2002 03:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1SBK1f77771; Thu, 28 Feb 2002 03:20:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B522237B400 for ; Thu, 28 Feb 2002 03:12:22 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1SBCMZ76369; Thu, 28 Feb 2002 03:12:22 -0800 (PST) (envelope-from nobody) Message-Id: <200202281112.g1SBCMZ76369@freefall.freebsd.org> Date: Thu, 28 Feb 2002 03:12:22 -0800 (PST) From: Michael Wardle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/35400: sysinstall could improve manipulation of /etc/hosts 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 >Number: 35400 >Category: misc >Synopsis: sysinstall could improve manipulation of /etc/hosts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 28 03:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Michael Wardle >Release: 4.5 >Organization: - >Environment: FreeBSD 4.5-RELEASE i386 >Description: My /etc/hosts file (seemingly generated by /stand/sysinstall during installation) contains this: 127.0.0.1 localhost 192.168.1.4 water 192.168.1.4 water. (note the final line has a terminal dot/period, as i don't have a domain on my home network) This causes some utilities (such as sendmail) to fail, as it can't resolve my fully-qualified domain name (FQDN), presumably (at least in part) because it finds the first entry matching my IP/hostname and then gives up. This can be overcome with an entry more like this: 127.0.0.1 localhost.localdomain localhost 192.161.1.4 water. water Where the format is: IP address number | full hostname + domain | short hostname/aliases This seems to be the more common format (as alluded to in hosts(5)), and more things work correctly if this format is used. If sysinstall does not currently do this (perhaps it's a special case for a null domain), it should be updated to use the suggested /etc/hosts format. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message