Date: Thu, 28 Feb 2002 03:12:22 -0800 (PST) From: Michael Wardle <michael@endbracket.net> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/35400: sysinstall could improve manipulation of /etc/hosts Message-ID: <200202281112.g1SBCMZ76369@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202281112.g1SBCMZ76369>