Assign pirogue.local and pirogue to 127.0.1.1

It's pretty standard to have 127.0.0.1 match localhost while the actual
machine's name (FQDN and hostname) matches 127.0.1.1 instead.

We would be happy to be told if something similar exists for IPv6!
This commit is contained in:
Cyril Brulebois 2024-07-20 08:00:15 +02:00
parent 0dd2b1a2c9
commit 1c9b6b2bef

View File

@ -19,7 +19,7 @@ toast_me() {
rm -f $MNT/etc/ssh/ssh_host_*
chroot $MNT systemctl enable ssh
# Change the hostname
echo "127.0.0.1 pirogue.local pirogue" >> $MNT/etc/hosts
echo "127.0.1.1 pirogue.local pirogue" >> $MNT/etc/hosts
echo "::1 pirogue.local pirogue" >> $MNT/etc/hosts
echo "pirogue" > $MNT/etc/hostname
# Add PTS PPA