Ignore:
Timestamp:
03/08/2017 12:47:35 AM (7 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
ac11646
Parents:
945b760
Message:

Update /etc/hosts in network configuration.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11204 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/networkd.xml

    r945b760 rbd4a1d9  
    238238<literal># Begin /etc/hosts
    239239
    240 127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
    241 ::1       <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
     240127.0.0.1 localhost
     241127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
     242::1       localhost ip6-localhost ip6-loopback
     243ff02::1   ip6-allnodes
     244ff02::2   ip6-allrouters
    242245
    243246# End /etc/hosts</literal>
     
    245248
    246249     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
    247 the IPv6 loopback interface.</para>
     250     the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
     251     specifically for the FQDN.</para>
    248252
    249253     <para>If using a static address, create the <filename>/etc/hosts</filename>
     
    254258
    255259127.0.0.1 localhost
    256 ::1       localhost
    257 <replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
     260127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
     261<replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
     262::1       localhost ip6-localhost ip6-loopback
     263ff02::1   ip6-allnodes
     264ff02::2   ip6-allrouters
    258265
    259266# End /etc/hosts</literal>
     
    261268
    262269     <para>The <replaceable>&lt;192.168.0.2&gt;</replaceable>,
    263      <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable>, and
     270     <replaceable>&lt;FQDN&gt;</replaceable>, and
    264271     <replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be
    265272     changed for specific uses or requirements (if assigned an IP address by a
Note: See TracChangeset for help on using the changeset viewer.