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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.