5.4. Check DNS

All hosts in your system must be configured for DNS and Reverse DNS.

If you are unable to configure DNS and Reverse DNS, you must edit the hosts file on every host in your cluster to contain the address of each of your hosts and to set the Fully Qualified Domain Name hostmane of each of those hosts. The following instructions cover basic hostname network setup for generic Linux hosts. Different versions and flavors of Linux might require slightly different commands. Please refer to your specific operating system documentation for the specific details for your system.

 5.4.1. Edit the Host File

  1. Using a text editor, open the hosts file on every host in your cluster. For example:

    vi /etc/hosts
  2. Add a line for each host in your cluster. The line should consist of the IP address and the FQDN. For example: fully.qualified.domain.name
    [Note] Note

    Do not remove the following two lines from your host file, or various programs that require network functionality may fail. localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6

 5.4.2. Set the Hostname

  1. Use the "hostname" command to set the hostname on each host in your cluster. For example:

    hostname fully.qualified.domain.name
  2. Confirm that the hostname is set by running the following command:

    hostname -f

    This should return the name you just set.

 5.4.3. Edit the Network Configuration File

  1. Using a text editor, open the network configuration file on every host. This file is used to set the desired network configuration for each host. For example:

    vi /etc/sysconfig/network
  2. Modify the HOSTNAME property to set the fully.qualified.domain.name.


loading table of contents...