Sfoglia il codice sorgente

Fix the /etc/hosts file on systemd

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11930 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Douglas R. Reno 5 anni fa
parent
commit
4234aea632
1 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. 12 9
      chapter09/networkd.xml

+ 12 - 9
chapter09/networkd.xml

@@ -288,6 +288,7 @@ EOF</userinput></screen>
      <para>Even if not using a network card, a valid FQDN is still required.
      This is necessary for certain programs, such as MTAs, to operate properly.</para>
 
+<!--
      <para>Create the /etc/hosts file using the following command:</para>
 
 <screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
@@ -301,14 +302,10 @@ 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. 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>
+     <para>Create the <filename>/etc/hosts</filename> file using the following
+     command:</para>
 
 <screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
 <literal># Begin /etc/hosts
@@ -328,8 +325,14 @@ EOF</userinput></screen>
      <replaceable>&lt;HOSTNAME&gt;</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>
--->
+     existing network). The optional alias name(s) can be omitted, and the
+     <replaceable>&lt;192.168.0.2</replaceable> line can be omitted if you
+     are using a connection configured with DHCP or IPv6 Autoconfiguration.</para>
+
+     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
+     the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
+     specifically for the FQDN.</para>
+
    </sect2>
 
 </sect1>