Identifying issues
There is a problem with name resolution if any of these tests fail. ESXi hosts must be able to find each other by:
- IP address
- Short Name
- Fully Qualified Domain Name (FQDN)
If an issue with name resolution has been identified it must be resolved either on the DNS server or by using hosts files.
- Verify that all ESXi hosts can ping each other by short name. All ESXi hosts in the environment must be able to ping each other by using short name only. For more information, see Testing network connectivity with the ping command (341078).
- Verify that all ESXi hosts can nslookup each other.
Use nslookup (reverse IP address lookup) to verify that the appropriate name is associated to a particular IP address.
For example:
[root@esx-server-1 /]# nslookup 192.168.0.5
Server: 192.168.0.7
Address: 192.168.0.7#53
5.0.168.192.in-addr.arpa name = esx-server-2.example.com
- Verify that all ESXi hosts can reverse nslookup each other.
Use nslookup (forward IP address lookup) to verify that the appropriate IP address is associated to a particular name.
For example:
[root@esx-server-1 /]# nslookup esx-server-2
Server: 192.168.0.7
Address: 192.168.0.7#53
Name: esx-server-2.example.com
Address: 192.168.0.5
- Verify that the DNS server has both an A Record (Address Record) and a C NAME record (Canonical name record) configured for each ESXi hosts.
Configuring hosts files on ESXi
The hosts file on the ESX host is located at /etc/hosts .
Open the file for editing using a text editor such as nano or vi .
Example hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
# Any line beginning with a pound sign is a comment and will not be read.
192.168.0.5 esx-server-1.example.com esx-server-1
192.168.0.6 esx-server-2.example.com esx-server-2
# The VMware Virtual Center Server must also have an entry here
192.168.0.20 virtualcenter.example.com virtualcenter
Notes:
- localhost must always be present in the hosts file. Do not modify or remove the entry for localhost .
- The hosts file must be identical on all ESXi hosts in the cluster.
- There must be an entry for every ESXi host in the cluster.
- Every host must have an IP address, Fully Qualified Domain Name (FQDN), and short name.
- The hosts file is case sensitive. Be sure to use lowercase throughout the environment.