VMware Cloud Community
dsubram
Enthusiast
Enthusiast

DNS Resolution

DNS resolution is not happening with VIMA. When I check /etc/init.d, I don't see any service by name "named" and /etc/host.conf contents is as below,

order hosts,bind.

How to get DNS resolution happen from VIMA? I would like to add all my ESX server by name rather then IP Addr.

0 Kudos
6 Replies
admin
Immortal
Immortal

Make sure that your DNS servers IP Addresses are listed in:

/etc/resolve.conf

Make sure to add your default domain name on the "search" line.

Example /etc/resolve.conf:

search hp.com

nameserver 10.16.20.110

nameserver 10.16.21.110

Regards,

Mostafa

0 Kudos
dsubram
Enthusiast
Enthusiast

I have /etc/resolv.conf updated with the required details. Still name resolution is not happening.

0 Kudos
admin
Immortal
Immortal

Would you please try rebooting the VM?

If the problem persists, please send me the output of running:

dig <hostname>

or

nslookup <hostname>

Regards,

Mostafa

0 Kudos
dsubram
Enthusiast
Enthusiast

After reboot of the VM, DNS resolution is happening.

Presently on my VM I got eth0.bak and eth0 as two interfaces. How to delete eth0.bak and I don't know who created this interface.

0 Kudos
cjoshi
Enthusiast
Enthusiast

The eth0.bak device gets created when you booted the VIMA for the first time. You could easily remove it by deleting the following files:

(_) sudo rm -f /etc/sysconfig/network-scripts/ifcfg-eth0.bak

(_) sudo rm -f /etc/sysconfig/networking/devices/ifcfg-eth0.bak

Now run the network configuration tool,

(_) /usr/sbin/system-config-network-tui

In the network configuration tui select the eth0.bak interface, and press ENTER. Now change the value for Name from eth0.bak to eth0. Similarly change the value for Device from eth0.bak to eth0, and press the OK button. Once back on the main screen you can observe that you don't see the eth0.bak device anymore.

Now you can go ahead and set the IP address to DHCP or STATIC for the eth0 device.

0 Kudos
halcabes
Enthusiast
Enthusiast

Note; the earlier questions and answers applied to a pre-release version of VIMA 1.0.

--Harvey

Harvey Alcabes

Product Manager

VMware, Inc.

--Harvey Harvey Alcabes Product Manager VMware, Inc.
0 Kudos