archfi icon indicating copy to clipboard operation
archfi copied to clipboard

Script does not create/update /etc/hosts file

Open i28v opened this issue 4 years ago • 3 comments

This file is required for networking and serious problems can occur if this file is missing, you should make the install script create the file and fill it with this information:

127.0.0.1	localhost
::1		localhost
127.0.1.1	myhostname.localdomain	myhostname

i28v avatar Dec 03 '20 20:12 i28v

Can you explain the serious problem?

The arch wiki say :

The myhostname Name Service Switch (NSS) module of systemd provides local hostname resolution without having to edit /etc/hosts

https://wiki.archlinux.org/index.php/Network_configuration#Local_hostname_resolution

MatMoul avatar Dec 05 '20 00:12 MatMoul

The link you posted is misleading, if you didn't need to update /etc/hosts then the arch wiki wouldn't tell you to so in the installation guide.

i28v avatar Dec 08 '20 07:12 i28v

This isn't the answer I expected ... What are the problems if you don't have the /etc/hosts file and it's managed by NSS enabled by default? Try to provide some technicals infos (an other page of the Arch Wiki or a thread in the Arch Linux forum).

MatMoul avatar Dec 08 '20 19:12 MatMoul

Closing old issue...

MatMoul avatar Nov 18 '22 02:11 MatMoul