[lfs-book] r11204 - in trunk/BOOK: . chapter01 chapter07

dj at higgs.linuxfromscratch.org dj at higgs.linuxfromscratch.org
Tue Mar 7 16:47:35 PST 2017


Author: dj
Date: Tue Mar  7 16:47:35 2017
New Revision: 11204

Log:
Update /etc/hosts in network configuration.

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter07/network.xml
   trunk/BOOK/chapter07/networkd.xml
   trunk/BOOK/general.ent

Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml	Sat Mar  4 04:33:28 2017	(r11203)
+++ trunk/BOOK/chapter01/changelog.xml	Tue Mar  7 16:47:35 2017	(r11204)
@@ -43,6 +43,15 @@
     appropriate for the entry or if needed the entire day's listitem.
 -->
     <listitem>
+      <para>2017-03-08</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dj] - Update /etc/hosts in network configuration.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>2017-03-03</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/chapter07/network.xml
==============================================================================
--- trunk/BOOK/chapter07/network.xml	Sat Mar  4 04:33:28 2017	(r11203)
+++ trunk/BOOK/chapter07/network.xml	Tue Mar  7 16:47:35 2017	(r11204)
@@ -267,13 +267,18 @@
 <literal># Begin /etc/hosts (network card version)
 
 127.0.0.1 localhost
-<replaceable><192.168.1.1></replaceable> <replaceable><HOSTNAME.example.org></replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
+127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
+<replaceable><192.168.1.1></replaceable> <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
+::1       localhost ip6-localhost ip6-loopback
+ff02::1   ip6-allnodes
+ff02::2   ip6-allrouters
 
 # End /etc/hosts (network card version)</literal>
 EOF</userinput></screen>
 
-     <para>The <replaceable><192.168.1.1></replaceable> and
-     <replaceable><HOSTNAME.example.org></replaceable> values need to be
+     <para>The <replaceable><192.168.1.1></replaceable>,
+     <replaceable><FQDN></replaceable>, and 
+     <replaceable><HOSTNAME></replaceable> values need to be
      changed for specific uses or requirements (if assigned an IP address by a
      network/system administrator and the machine will be connected to an
      existing network). The optional alias name(s) can be omitted.</para>
@@ -284,7 +289,11 @@
 <screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
 <literal># Begin /etc/hosts (no network card version)
 
-127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost
+127.0.0.1 localhost
+127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
+::1       localhost ip6-localhost ip6-loopback
+ff02::1   ip6-allnodes
+ff02::2   ip6-allrouters
 
 # End /etc/hosts (no network card version)</literal>
 EOF</userinput></screen>

Modified: trunk/BOOK/chapter07/networkd.xml
==============================================================================
--- trunk/BOOK/chapter07/networkd.xml	Sat Mar  4 04:33:28 2017	(r11203)
+++ trunk/BOOK/chapter07/networkd.xml	Tue Mar  7 16:47:35 2017	(r11204)
@@ -237,14 +237,18 @@
 <screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
 <literal># Begin /etc/hosts
 
-127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
-::1       <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
+127.0.0.1 localhost
+127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
+::1       localhost ip6-localhost ip6-loopback
+ff02::1   ip6-allnodes
+ff02::2   ip6-allrouters
 
 # End /etc/hosts</literal>
 EOF</userinput></screen>
 
      <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
-the IPv6 loopback interface.</para>
+     the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
+     specifically for the FQDN.</para>
 
      <para>If using a static address, create the <filename>/etc/hosts</filename>
      file by running this command instead:</para>
@@ -253,14 +257,17 @@
 <literal># Begin /etc/hosts
 
 127.0.0.1 localhost
-::1       localhost
-<replaceable><192.168.0.2></replaceable> <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
+127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
+<replaceable><192.168.0.2></replaceable> <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
+::1       localhost ip6-localhost ip6-loopback
+ff02::1   ip6-allnodes
+ff02::2   ip6-allrouters
 
 # End /etc/hosts</literal>
 EOF</userinput></screen>
 
      <para>The <replaceable><192.168.0.2></replaceable>,
-     <replaceable><HOSTNAME.example.org></replaceable>, and
+     <replaceable><FQDN></replaceable>, and
      <replaceable><HOSTNAME></replaceable> values need to be
      changed for specific uses or requirements (if assigned an IP address by a
      network/system administrator and the machine will be connected to an

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent	Sat Mar  4 04:33:28 2017	(r11203)
+++ trunk/BOOK/general.ent	Tue Mar  7 16:47:35 2017	(r11204)
@@ -1,13 +1,13 @@
-<!ENTITY version         "SVN-20170303">
+<!ENTITY version         "SVN-20170308">
 <!ENTITY short-version   "svn">  <!-- Used below in &blfs-book; 
                                       Change to x.y for release but not -rc releases -->
 <!ENTITY generic-version "development"> <!-- Use "development"  or "x.y[-pre{x}]" -->
 
-<!ENTITY versiond        "20170303-systemd">
+<!ENTITY versiond        "20170308-systemd">
 <!ENTITY short-versiond  "systemd">
 <!ENTITY generic-versiond "systemd"> 
 
-<!ENTITY releasedate     "March 3, 2017">
+<!ENTITY releasedate     "March 8, 2017">
 
 <!ENTITY copyrightdate   "1999-2017"><!-- jhalfs needs a literal dash, not – -->
 <!ENTITY milestone       "8.1">


More information about the lfs-book mailing list