aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/hosts.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/hosts.xml')
-rw-r--r--chapter07/hosts.xml13
1 files changed, 7 insertions, 6 deletions
diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml
index 0b196cefd..e51aa37be 100644
--- a/chapter07/hosts.xml
+++ b/chapter07/hosts.xml
@@ -26,7 +26,7 @@
fully-qualified domain name (FQDN), and possible aliases for use in the
<filename>/etc/hosts</filename> file. The syntax is:</para>
-<screen><literal>&lt;IP address&gt; myhost.example.org aliases</literal></screen>
+<screen><literal>IP_address myhost.example.org aliases</literal></screen>
<para>Unless the computer is to be visible to the Internet (i.e.,
there is a registered domain and a valid block of assigned IP
@@ -54,16 +54,17 @@
<literal># Begin /etc/hosts (network card version)
127.0.0.1 localhost
-<replaceable>[192.168.1.1]</replaceable> <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable>
+<replaceable>&lt;192.168.1.1&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
# End /etc/hosts (network card version)</literal>
EOF</userinput></screen>
- <para>The <replaceable>[192.168.1.1]</replaceable> and
- <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable>
+ <para>The <replaceable>&lt;192.168.1.1&gt;</replaceable> and
+ <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable>
values need to be changed for specific users or requirements (if
assigned an IP address by a network/system administrator and the
- machine will be connected to an existing network).</para>
+ machine will be connected to an existing network). The optional alias
+ name(s) can be omitted.</para>
<para>If a network card is not going to be configured, create the
<filename>/etc/hosts</filename> file by running:</para>
@@ -71,7 +72,7 @@ EOF</userinput></screen>
<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts (no network card version)
-127.0.0.1 <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> localhost
+127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost
# End /etc/hosts (no network card version)</literal>
EOF</userinput></screen>