aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-01 20:38:04 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-01 20:38:04 +0000
commit8d1746eb0e62109d3d794dc5f113fa149912f0b5 (patch)
tree67450fdbc76271be5ec6fe33426b8c292e771040
parent08f74da93c2579d207a849002637fc087c1f8a24 (diff)
Tweak /etc/hosts file
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11892 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter07/network.xml2
-rw-r--r--chapter07/networkd.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/chapter07/network.xml b/chapter07/network.xml
index 2a86df669..b527258ee 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -208,7 +208,7 @@ EOF</userinput></screen>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts
-127.0.0.1 localhost
+127.0.0.1 localhost.localdomain localhost
127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
<replaceable>&lt;192.168.1.1&gt;</replaceable> <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
::1 localhost ip6-localhost ip6-loopback
diff --git a/chapter07/networkd.xml b/chapter07/networkd.xml
index b95d9b390..688c315aa 100644
--- a/chapter07/networkd.xml
+++ b/chapter07/networkd.xml
@@ -294,7 +294,7 @@ EOF</userinput></screen>
<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts
-127.0.0.1 localhost
+127.0.0.1 localhost.localdomain localhost
127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes