Bug 124949

Summary: Discrepancy between handbook and example hosts file for localhost configuration
Product: Documentation Reporter: Wayne Sierke <ws>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Wayne Sierke 2008-06-24 18:00:09 UTC
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.

Fix: 

Unknown. Expert input needed.

If consensus deems that changes are needed, I'm happy to follow up with the requisite patches.
How-To-Repeat: Compare localhost entries in /usr/share/examples/etc/hosts and default /etc/hosts with instructions in handbook 11.10.2.2.
Comment 1 dfilter service freebsd_committer freebsd_triage 2008-08-03 17:30:47 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"
Comment 2 Tom Rhodes freebsd_committer freebsd_triage 2008-08-03 17:31:00 UTC
State Changed
From-To: open->closed

I have updated the example in the handbook, thanks for 
bringing this to our attention. 


Comment 3 Tom Rhodes freebsd_committer freebsd_triage 2008-08-03 17:31:00 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me.