My Oracle Support Banner

Oracle Linux 6 changes /etc/hosts after reboot (Doc ID 1507979.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 6.1 and later
Linux x86
Linux x86-64

Symptoms

 Server reboot in Oracle Linux  6 causes Network Manager to edit /etc/hosts file. For e.g. the  normal hosts file looks like below. 
$ more /etc/hosts
127.0.0.1       localhost.localdomain   localhost

After reboot, it changes automatically to:

[root@houvoapp1 ~]# more /etc/hosts
127.0.0.1       hostname       localhost.localdomain   localhost
::1     houvoapp1       localhost6.localdomain6 localhost6

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.