My Oracle Support Banner

How To Configure The "/etc/hosts" File On Linux (Doc ID 242490.1)

Last updated on MAY 08, 2020

Applies to:

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


This article will show you how to properly configure the "/etc/hosts" file on a Linux platform.


This is intended for Linux system administrators and Linux DBAs with system administration skills.


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
 What Is /etc/hosts And Why Is It Used?
 Format Of The /etc/hosts File
 Associating Host Names And IP Addresses
 Official Reference

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