Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Networking > Issue <<  67 of 351 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3535
Last update: 09-01-05
Issue:
Where do I set the local hostname and domain name of my machine?
Resolution:
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 programs as a default in order to generate a valid return path to your machine. Other programs will allow this setting to be overridden.

For example:

 
# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
      


In order for your machine to be accessible from other machines on the network using this hostname there must be a valid entry mapping your system's hostname to its physical network address in the name resolution service that is in use on the network that your machine is connected to, for example DNS on the Internet. Please contact your network administrator for details on creating this entry.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Networking > Issue <<   67  of  351  >>