My Oracle Support Banner

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

Last updated on APRIL 28, 2020

Applies to:

Linux OS - Version Oracle Linux 6.1 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64


 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       localhost.localdomain   localhost

After reboot, it changes automatically to:

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


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

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

In this Document

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