neysx 06/05/27 13:02:15 Modified: hb-install-config.xml Log: #122911 make /etc/hosts simpler
Revision Changes Path 1.5 xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml?rev=1.5&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml?rev=1.5&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml.diff?r1=1.4&r2=1.5&cvsroot=gentoo Index: hb-install-config.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- hb-install-config.xml 15 May 2006 07:02:13 -0000 1.4 +++ hb-install-config.xml 27 May 2006 13:02:15 -0000 1.5 @@ -4,12 +4,12 @@ <!-- The content of this document is licensed under the CC-BY-SA license --> <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml,v 1.4 2006/05/15 07:02:13 nightmorph Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.0/hb-install-config.xml,v 1.5 2006/05/27 13:02:15 neysx Exp $ --> <sections> -<version>6.1</version> -<date>2006-03-28</date> +<version>6.2</version> +<date>2006-05-27</date> <section> <title>Filesystem Information</title> @@ -334,11 +334,10 @@ <p> You now need to inform Linux about your network. This is defined in -<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses -for hosts that aren't resolved by your nameserver. For instance, if your -internal network consists of three PCs called <c>jenny</c> (192.168.0.5), -<c>benny</c> (192.168.0.6) and <c>tux</c> (192.168.0.7 - this system) you would -open <path>/etc/hosts</path> and fill in the values: +<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses for +hosts that aren't resolved by your nameserver. You need to define your system. +You may also want to define other systems on your network if you don't want to +set up your own internal DNS system. </p> <pre caption="Opening /etc/hosts"> @@ -346,20 +345,13 @@ </pre> <pre caption="Filling in the networking information"> -127.0.0.1 localhost +<comment>(This defines the current system)</comment> +127.0.0.1 tux.homenetwork tux localhost + +<comment>(Define extra systems on your network, +they need to have a static IP to be defined this way.)</comment> 192.168.0.5 jenny.homenetwork jenny 192.168.0.6 benny.homenetwork benny -192.168.0.7 tux.homenetwork tux -</pre> - -<p> -If your system is the only system (or the nameservers handle all name -resolution) a single line is sufficient. For instance, if you want to call your -system <c>tux</c>: -</p> - -<pre caption="/etc/hosts for lonely or fully integrated PCs"> -127.0.0.1 localhost tux </pre> <p> -- [email protected] mailing list
