mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Fix the /etc/hosts file on systemd
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11930 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
9e7475a6c3
commit
4234aea632
@ -288,6 +288,7 @@ EOF</userinput></screen>
|
||||
<para>Even if not using a network card, a valid FQDN is still required.
|
||||
This is necessary for certain programs, such as MTAs, to operate properly.</para>
|
||||
|
||||
<!--
|
||||
<para>Create the /etc/hosts file using the following command:</para>
|
||||
|
||||
<screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
|
||||
@ -301,14 +302,10 @@ ff02::2 ip6-allrouters
|
||||
|
||||
# End /etc/hosts</literal>
|
||||
EOF</userinput></screen>
|
||||
-->
|
||||
|
||||
<para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
|
||||
the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
|
||||
specifically for the FQDN.</para>
|
||||
|
||||
<!--
|
||||
<para>If using a static address, create the <filename>/etc/hosts</filename>
|
||||
file by running this command instead:</para>
|
||||
<para>Create the <filename>/etc/hosts</filename> file using the following
|
||||
command:</para>
|
||||
|
||||
<screen><userinput>cat > /etc/hosts << "EOF"
|
||||
<literal># Begin /etc/hosts
|
||||
@ -328,8 +325,14 @@ EOF</userinput></screen>
|
||||
<replaceable><HOSTNAME></replaceable> values need to be
|
||||
changed for specific uses or requirements (if assigned an IP address by a
|
||||
network/system administrator and the machine will be connected to an
|
||||
existing network). The optional alias name(s) can be omitted.</para>
|
||||
-->
|
||||
existing network). The optional alias name(s) can be omitted, and the
|
||||
<replaceable><192.168.0.2</replaceable> line can be omitted if you
|
||||
are using a connection configured with DHCP or IPv6 Autoconfiguration.</para>
|
||||
|
||||
<para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
|
||||
the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
|
||||
specifically for the FQDN.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
Loading…
Reference in New Issue
Block a user