diff options
Diffstat (limited to 'chapter07/hosts.xml')
-rw-r--r-- | chapter07/hosts.xml | 13 |
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><IP address> 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>[<HOSTNAME>.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> +<replaceable><192.168.1.1></replaceable> <replaceable><HOSTNAME.example.org></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>[<HOSTNAME>.example.org]</replaceable> + <para>The <replaceable><192.168.1.1></replaceable> and + <replaceable><HOSTNAME.example.org></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 > /etc/hosts << "EOF" <literal># Begin /etc/hosts (no network card version) -127.0.0.1 <replaceable>[<HOSTNAME>.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> localhost +127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost # End /etc/hosts (no network card version)</literal> EOF</userinput></screen> |