aboutsummaryrefslogtreecommitdiffstats
path: root/chapter09/network.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-12-05 13:12:55 +0800
committerXi Ruoyao <xry111@xry111.site>2023-12-05 13:12:55 +0800
commit73d91ac621a4e59f71ff6664c68c935317f9ce42 (patch)
tree4f9b341370b83d97379a1343a69d13d48cb65740 /chapter09/network.xml
parent6b6a1b958af3a0e59559e44ad700f761d8a49a09 (diff)
parentdc8572f2413a4d25444bb1237ea2a01dfba60429 (diff)
Merge remote-tracking branch 'origin/trunk' into xry111/arm64
Diffstat (limited to 'chapter09/network.xml')
-rw-r--r--chapter09/network.xml22
1 files changed, 15 insertions, 7 deletions
diff --git a/chapter09/network.xml b/chapter09/network.xml
index c86edf56a..541ece699 100644
--- a/chapter09/network.xml
+++ b/chapter09/network.xml
@@ -178,9 +178,10 @@ EOF</userinput></screen>
<secondary>/etc/hosts</secondary>
</indexterm>
- <para>Decide on the IP address, fully-qualified domain name (FQDN), and
- possible aliases for use in the <filename>/etc/hosts</filename> file. The
- syntax is:</para>
+ <para>Decide on a fully-qualified domain name (FQDN), and possible aliases
+ for use in the <filename>/etc/hosts</filename> file. If using static IP
+ addresses, you'll also need to decide on an IP address. The syntax
+ for a hosts file entry is:</para>
<screen><literal>IP_address myhost.example.org aliases</literal></screen>
@@ -197,11 +198,18 @@ EOF</userinput></screen>
<para>x can be any number in the range 16-31. y can be any number in the
range 0-255.</para>
- <para>A valid private IP address could be 192.168.1.1. A valid FQDN for
- this IP could be lfs.example.org.</para>
+ <para>A valid private IP address could be 192.168.1.1.</para>
- <para>Even if not using a network card, a valid FQDN is still required.
- This is necessary for certain programs to operate correctly.</para>
+ <para>If the computer is to be visible to the Internet, a valid FQDN
+ can be the domain name itself, or a string resulted by concatenating a
+ prefix (often the hostname) and the domain name with a <quote>.</quote>
+ character. And, you need to contact the domain provider to resolve the
+ FQDN to your public IP address.</para>
+
+ <para>Even if the computer is not visible to the Internet, a FQDN is
+ still needed for certain programs, such as MTAs, to operate properly.
+ A special FQDN, <literal>localhost.localdomain</literal>, can be used
+ for this purpose.</para>
<para>Create the <filename>/etc/hosts</filename> file by running:</para>