Oracle Linux 7: How to Change System "hostname"

(Doc ID 2312768.1)

Last updated on OCTOBER 06, 2017

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Information in this document applies to any platform.


The following documentation explains how to change system hostname in Oracle Linux 7 (including Red Hat Enterprise Linux 7).

There are three classes of hostname: static, pretty, and transient.

Static: is the traditional hostname, which can be chosen by the user, and is stored in the /etc/hostname file.
Transient: is a dynamic host name maintained by the kernel. It is initialized to the static host name by default, whose value defaults to “localhost”. It can be changed by DHCP or mDNS at runtime.
Pretty: is a free-form UTF8 host name for presentation to the user. For example: "user's server" 


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