My Oracle Support Banner

How To Change Hostname Permanent In OL 7.5 (Doc ID 2472066.1)

Last updated on MAY 30, 2022

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Goal

How to change hostname permanently in OL 7.5

Changing the hostname in /etc/hostname, /etc/hosts, /etc/sysconfig/network and also with hostnamectl command didn't work even after making these files immutable.
 

Solution

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
Goal
Solution
References


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