aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/hosts.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/hosts.xml')
-rw-r--r--chapter07/hosts.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml
index 5f58fe0fe..dda1de2b9 100644
--- a/chapter07/hosts.xml
+++ b/chapter07/hosts.xml
@@ -7,27 +7,27 @@
<title>Creating the /etc/hosts File</title>
<?dbhtml filename="hosts.html"?>
-<para>If a network card is not going to be configured, create the
+<para>If a network card is to be configured, create the
<filename>/etc/hosts</filename> file by running:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
-# Begin /etc/hosts (no network card version)
+<literal># Begin /etc/hosts (network card version)
-127.0.0.1 <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable> localhost
+127.0.0.1 localhost
+<replaceable>[192.168.1.1]</replaceable> <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable>
-# End /etc/hosts (no network card version)
+# End /etc/hosts (network card version)</literal>
EOF</userinput></screen>
-<para>If a network card is to be configured, create the
+<para>If a network card is not going to be configured, create the
<filename>/etc/hosts</filename> file by running:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
-# Begin /etc/hosts (network card version)
+<literal># Begin /etc/hosts (no network card version)
-127.0.0.1 localhost
-<replaceable>[192.168.1.1]</replaceable> <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable>
+127.0.0.1 <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> localhost
-# End /etc/hosts (network card version)
+# End /etc/hosts (no network card version)</literal>
EOF</userinput></screen>
</sect1>