diff options
Diffstat (limited to 'chapter07/hosts.xml')
-rw-r--r-- | chapter07/hosts.xml | 18 |
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 > /etc/hosts << "EOF" -# Begin /etc/hosts (no network card version) +<literal># Begin /etc/hosts (network card version) -127.0.0.1 <replaceable>[<value of HOSTNAME>.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable> localhost +127.0.0.1 localhost +<replaceable>[192.168.1.1]</replaceable> <replaceable>[<HOSTNAME>.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 > /etc/hosts << "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>[<value of HOSTNAME>.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable> +127.0.0.1 <replaceable>[<HOSTNAME>.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> |