aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/hosts.xml
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-06-19 16:54:58 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-06-19 16:54:58 +0000
commitf67f5cfed55cb2ac26f29d16ad1f099461e7cf98 (patch)
treecdb61a57a3414232a71d7bdc81779c9fd0364604 /chapter07/hosts.xml
parent8ad79807a3c97e18a90319c9b91018b0be2bbb3c (diff)
Tags corrections
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3813 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/hosts.xml')
-rw-r--r--chapter07/hosts.xml23
1 files changed, 13 insertions, 10 deletions
diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml
index d83f202b7..a9cbd4b3e 100644
--- a/chapter07/hosts.xml
+++ b/chapter07/hosts.xml
@@ -18,12 +18,14 @@
<secondary>/etc/hosts</secondary></indexterm>
<para>If a network card is to be configured, you have to decide on the
-IP-address, FQDN and possible aliases for use in the /etc/hosts file. The
+IP-address, FQDN and possible aliases for use in the <filename>/etc/hosts</filename> file. The
syntax is:</para>
<screen>&lt;IP address&gt; myhost.example.org aliases</screen>
-<para>Unless your computer is to be visible to the Internet (e.g. you have a registered domain and a valid block of assigned IP addresses - most of us don't have this)you should make sure that the IP-address is in the private network
+<para>Unless your computer is to be visible to the Internet (e.g., you have a
+registered domain and a valid block of assigned IP addresses - most of us don't
+have this) you should make sure that the IP-address is in the private network
IP-address range. Valid ranges are:</para>
<screen> Class Networks
@@ -32,7 +34,8 @@ IP-address range. Valid ranges are:</para>
C 192.168.0.0 through 192.168.255.0</screen>
<para>A valid IP address could be 192.168.1.1. A valid FQDN for this IP could
-be www.linuxfromscratch.org (not recommended as this is a valid registered domain address and could cause your domain name server problems).</para>
+be www.linuxfromscratch.org (not recommended as this is a valid registered domain
+address and could cause your domain name server problems).</para>
<para>If you aren't going to use a network card, you still need to
come up with a FQDN. This is necessary for certain programs to operate
@@ -41,27 +44,27 @@ correctly.</para>
<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"</userinput>
+<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
# Begin /etc/hosts (no network card version)
-127.0.0.1 &lt;value of HOSTNAME&gt;.example.org &lt;value of HOSTNAME&gt; localhost
+127.0.0.1 <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable> localhost
# End /etc/hosts (no network card version)
-<userinput>EOF</userinput></screen>
+EOF</userinput></screen>
<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"</userinput>
+<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
# Begin /etc/hosts (network card version)
127.0.0.1 localhost
-192.168.1.1 &lt;value of HOSTNAME&gt;.example.org &lt;value of HOSTNAME&gt;
+<replaceable>[192.168.1.1]</replaceable> <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable>
# End /etc/hosts (network card version)
-<userinput>EOF</userinput></screen>
+EOF</userinput></screen>
-<para>Of course, the 192.168.1.1 and &lt;value of HOSTNAME&gt;.example.org
+<para>Of course, the <replaceable>[192.168.1.1]</replaceable> and <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable>
have to be changed to your liking (or requirements if assigned an IP-address
by a network/system administrator and this machine is planned to be connected
to an existing network).</para>