From nobody@FreeBSD.org  Tue Jun 24 16:57:19 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A912E106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Jun 2008 16:57:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A174A8FC25
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Jun 2008 16:57:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m5OGvJZH096872
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Jun 2008 16:57:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m5OGvJpN096871;
	Tue, 24 Jun 2008 16:57:19 GMT
	(envelope-from nobody)
Message-Id: <200806241657.m5OGvJpN096871@www.freebsd.org>
Date: Tue, 24 Jun 2008 16:57:19 GMT
From: Wayne Sierke <ws@au.dyndns.ws>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Discrepancy between handbook and example hosts file for localhost configuration
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124949
>Category:       docs
>Synopsis:       Discrepancy between handbook and example hosts file for localhost configuration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 24 17:00:09 UTC 2008
>Closed-Date:    Sun Aug 03 16:32:30 UTC 2008
>Last-Modified:  Sun Aug  3 16:40:01 UTC 2008
>Originator:     Wayne Sierke
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
FreeBSD predator-ii.buffyverse 7.0-STABLE FreeBSD 7.0-STABLE #1: Sat May 10 14:31:48 CST 2008     root@predator-ii.buffyverse:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
There is a slight but possibly significant discrepancy between the 'localhost' configuration entries given in the handbook 11.10.2.2 /etc/hosts:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-configfiles.html

and the installed /usr/share/examples/etc/hosts (and default /etc/hosts) file, viz:

::1                     localhost localhost.my.domain myname.my.domain
127.0.0.1               localhost localhost.my.domain myname.my.domain

::1			localhost localhost.my.domain
127.0.0.1		localhost localhost.my.domain

respectively.

This difference was noticed recently while resolving a 'slow login' problem with sshd. Although I don't have a reference, I seem to recall having seen at least one claim that the hostname entry might be needed (in the loopback config) to circumvent ssh login delays.
>How-To-Repeat:
Compare localhost entries in /usr/share/examples/etc/hosts and default /etc/hosts with instructions in handbook 11.10.2.2.
>Fix:
Unknown. Expert input needed.

If consensus deems that changes are needed, I'm happy to follow up with the requisite patches.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Sun Aug 3 16:31:00 UTC 2008 
State-Changed-Why:  
I have updated the example in the handbook, thanks for 
bringing this to our attention. 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Sun Aug 3 16:31:00 UTC 2008 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124949 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/124949: commit references a PR
Date: Sun,  3 Aug 2008 16:30:47 +0000 (UTC)

 trhodes     2008-08-03 16:30:38 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/books/handbook/config chapter.sgml 
   Log:
   Update the /etc/hosts example in the handbook to match reality.
   
   PR:             124949
   Discussed with: brueffer
   
   Revision  Changes    Path
   1.233     +16 -14    doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
