mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Chapter 7 - Creating the /etc/hosts file: Amended example domain
names to comply with RFC 2066. Closes 742. From Anderson Lizardo. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
51fe2150ea
commit
0afaac44ef
@ -50,6 +50,10 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem><para>January 17th, 2004 [greg]: Chapter 7 - Creating the /etc/hosts
|
||||||
|
file: Amended example domain names to comply with RFC 2066. Closes
|
||||||
|
742.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>January 16th, 2004 [greg]: Expanded the Locking in Glibc and
|
<listitem><para>January 16th, 2004 [greg]: Expanded the Locking in Glibc and
|
||||||
Re-adjusting the toolchain sections to also catch missing cc->gcc symlink and
|
Re-adjusting the toolchain sections to also catch missing cc->gcc symlink and
|
||||||
provide more help for when things go wrong.</para></listitem>
|
provide more help for when things go wrong.</para></listitem>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
IP-address, FQDN and possible aliases for use in the /etc/hosts file. The
|
IP-address, FQDN and possible aliases for use in the /etc/hosts file. The
|
||||||
syntax is:</para>
|
syntax is:</para>
|
||||||
|
|
||||||
<screen><IP address> myhost.mydomain.org aliases</screen>
|
<screen><IP address> myhost.example.org aliases</screen>
|
||||||
|
|
||||||
<para>You should make sure that the IP-address is in the private network
|
<para>You should make sure that the IP-address is in the private network
|
||||||
IP-address range. Valid ranges are:</para>
|
IP-address range. Valid ranges are:</para>
|
||||||
@ -29,7 +29,7 @@ correctly.</para>
|
|||||||
<screen><userinput>cat > /etc/hosts << "EOF"</userinput>
|
<screen><userinput>cat > /etc/hosts << "EOF"</userinput>
|
||||||
# Begin /etc/hosts (no network card version)
|
# Begin /etc/hosts (no network card version)
|
||||||
|
|
||||||
127.0.0.1 <value of HOSTNAME>.mydomain.com <value of HOSTNAME> localhost
|
127.0.0.1 <value of HOSTNAME>.example.org <value of HOSTNAME> localhost
|
||||||
|
|
||||||
# End /etc/hosts (no network card version)
|
# End /etc/hosts (no network card version)
|
||||||
<userinput>EOF</userinput></screen>
|
<userinput>EOF</userinput></screen>
|
||||||
@ -40,13 +40,13 @@ correctly.</para>
|
|||||||
<screen><userinput>cat > /etc/hosts << "EOF"</userinput>
|
<screen><userinput>cat > /etc/hosts << "EOF"</userinput>
|
||||||
# Begin /etc/hosts (network card version)
|
# Begin /etc/hosts (network card version)
|
||||||
|
|
||||||
127.0.0.1 localhost.localdomain localhost
|
127.0.0.1 localhost
|
||||||
192.168.1.1 <value of HOSTNAME>.mydomain.org <value of HOSTNAME>
|
192.168.1.1 <value of HOSTNAME>.example.org <value of HOSTNAME>
|
||||||
|
|
||||||
# End /etc/hosts (network card version)
|
# End /etc/hosts (network card version)
|
||||||
<userinput>EOF</userinput></screen>
|
<userinput>EOF</userinput></screen>
|
||||||
|
|
||||||
<para>Of course, the 192.168.1.1 and <value of HOSTNAME>.mydomain.org
|
<para>Of course, the 192.168.1.1 and <value of HOSTNAME>.example.org
|
||||||
have to be changed to your liking (or requirements if assigned an IP-address
|
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
|
by a network/system administrator and this machine is planned to be connected
|
||||||
to an existing network).</para>
|
to an existing network).</para>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||||
"/usr/share/docbook/docbookx.dtd" [
|
"/usr/share/docbook/docbookx.dtd" [
|
||||||
|
|
||||||
<!ENTITY version "CVS-2004-01-16">
|
<!ENTITY version "CVS-2004-01-17">
|
||||||
<!ENTITY releasedate "January 16th, 2004">
|
<!ENTITY releasedate "January 17th, 2004">
|
||||||
<!ENTITY milestone "5.1">
|
<!ENTITY milestone "5.1">
|
||||||
<!ENTITY nbsp " ">
|
<!ENTITY nbsp " ">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user