Author: renodr
Date: Fri Jun 12 14:30:19 2020
New Revision: 11930
Log:
Fix the /etc/hosts file on systemd
Modified:
branches/cross2/chapter09/networkd.xml
Modified: branches/cross2/chapter09/networkd.xml
==============================================================================
--- branches/cross2/chapter09/networkd.xml Fri Jun 12 14:04:48 2020
(r11929)
+++ branches/cross2/chapter09/networkd.xml Fri Jun 12 14:30:19 2020
(r11930)
@@ -288,6 +288,7 @@
<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 > /etc/hosts << "EOF"
@@ -301,14 +302,10 @@
# 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 > /etc/hosts << "EOF"
<literal># Begin /etc/hosts
@@ -328,8 +325,14 @@
<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>
--->
+ existing network). The optional alias name(s) can be omitted, and the
+ <replaceable><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>
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page