New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
I am having trouble permanently removing 127.0.1.1 from debian hosts file
yongsiklee
Member, Patron Provider
in Help
I am having trouble permanently removing 127.0.1.1.
While it is said that that entry can be replaced with an IP address and when I did that, it reappears in the hosts file after rebooting. This is the first time this entry shows back up after it being removed. Any solution?
Comments
chattr +i /etc/hosts
unless you get permission denied even with root.
i recall it was lxc or some non kvm config.
Could you explain what you /actually/ are trying to achieve?
Probably what you think is a solution (removing the line with 127.0.1.1) is not what you want.
I am replacing 127.0.1.1 with a public IP address but it came back (adding to the replacing entry) after rebooting.
Thank you. It worked!
*Just for the reminder for myself, chattr -i will remove immutability^^
Oops! Got error msgs while installing Proxmox.
I guess it was not a permanent solution.
If this is for installing proxmox on debian, then disable cloud init for hosts override. That will permanently solve the issue.