archlinux

19 - Localhost resolution

Previous: Set hostname

References:


Edit

/etc/hosts

by running (replace myhostname accordingly)

echo "127.0.1.1    myhostname" >> /etc/hosts

Check the results with

cat /etc/hosts

The file should contain the following lines (replace myhostname accordingly):

127.0.0.1    localhost
::1          localhost
127.0.1.1    myhostname

Next: Install bootloader