My Oracle Support Banner

How to Configure hostname in Oracle Linux 7 (Doc ID 2049221.1)

Last updated on MAY 19, 2020

Applies to:

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


This document describes how to edit hostname in Oracle Linux 7.

Note: manually append "HOSTNAME=xxxxx" into file /etc/sysconfig/network and restart system will not work on Oracle Linux 7.



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
1. Use hostnamectl which is a command-line client to systemd-hostnamed service
 2. nmcli
 3. Edit /etc/hostname

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