Where do I set the local hostname and domain name of my machine?

Updated -

You can use the redhat-config-network tool (either from the command line or from the Network icon in the System Settings menu in the GUI) to set the hostname of your machine. Go to the DNS tab and set the hostname there.

The local hostname is found as the value of the HOSTNAME setting in the file /etc/sysconfig/network. This hostname will be used by some progra...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content