diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2021-04-29 12:23:59 -0500 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2021-04-29 12:23:59 -0500 |
commit | 2013a74b0d3c1733c761254a03108e0606f7e396 (patch) | |
tree | b4b36c3f61458cbf0ce6f9588b9825c2bb7c55cc /chapter07 | |
parent | 99ee345ad67861dbaa41810874f35fbf593a2f50 (diff) |
Add ipv6 localhost in Chapter 7 hosts file
Diffstat (limited to 'chapter07')
-rw-r--r-- | chapter07/createfiles.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 0cacb76cb..8aec64958 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -47,7 +47,10 @@ referenced in some test suites, and in one of Perl's configuration files as well:</para> -<screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen> +<screen><userinput>cat > /etc/hosts << EOF +"127.0.0.1 localhost $(hostname)" +::1 localhost +EOF</userinput></screen> <para>In order for user <systemitem class="username">root</systemitem> to be able to login and for the name <quote>root</quote> to be recognized, there |