Configure a Hostname

  1. Use the following methods to configure the hostname of a machine running Redhat Linux:
    • The hostname command: hostname appviewxeval.payoda.com.
    • The /etc/sysconfig/network configuration file (preferred method).
      • NETWORKING=yes
      • HOSTNAME=appviewxeval.payoda.com
  2. To make the configuration persistent, you must configure it in the /etc/sysconfig/network file.
  3. Open the file in an editor and change the following line:
  4. After modifying the configuration file, restart the network service to read the /etc/init.d/network restart file.
    Note: This creates a temporary or non-persistent configuration of the hostname.