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

Last updated on FEBRUARY 25, 2013

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

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 hundreds of Community platforms