aboutsummaryrefslogtreecommitdiffstats
path: root/chapter09
diff options
context:
space:
mode:
authorDouglas R. Reno <renodr@linuxfromscratch.org>2020-06-12 21:30:19 +0000
committerDouglas R. Reno <renodr@linuxfromscratch.org>2020-06-12 21:30:19 +0000
commit4234aea63245034ea9c2eb5081e22cbe75d27571 (patch)
tree2158474ba4f6cef62319eaa55e1db7d6f8ba8c8f /chapter09
parent9e7475a6c30cbc40d2cf69118ea65d682189b091 (diff)
Fix the /etc/hosts file on systemd
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11930 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter09')
-rw-r--r--chapter09/networkd.xml21
1 files changed, 12 insertions, 9 deletions
diff --git a/chapter09/networkd.xml b/chapter09/networkd.xml
index 1acc215b9..229b313b1 100644
--- a/chapter09/networkd.xml
+++ b/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>