Add IPv6 loopback interface to /etc/hosts.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10593 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Krejzi 2014-06-29 14:39:33 +00:00
parent abadfc3004
commit abfa34b413

View File

@ -209,6 +209,7 @@ EOF</userinput></screen>
<literal># Begin /etc/hosts (network card version) <literal># Begin /etc/hosts (network card version)
127.0.0.1 localhost 127.0.0.1 localhost
::1 localhost
<replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable> <replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
# End /etc/hosts (network card version)</literal> # End /etc/hosts (network card version)</literal>
@ -227,10 +228,13 @@ EOF</userinput></screen>
<literal># Begin /etc/hosts (no network card version) <literal># Begin /etc/hosts (no network card version)
127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost 127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost
::1 localhost
# End /etc/hosts (no network card version)</literal> # End /etc/hosts (no network card version)</literal>
EOF</userinput></screen> EOF</userinput></screen>
<para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents the IPv6 loopback interface.</para>
</sect2> </sect2>
</sect1> </sect1>