ESXi - DNS Quetion


I'm trying to figure out what DNS settings to use on my ESXi server.

Here is my setup.
I have a firewall, that has external 2 external DNS settings, then then to
a ESXi server that at the moment has the 2 internal DNS settings from a virtual windows nameserver.

Here is my question, I have 4 nameserver addresses on my windows DNS servers.

ns1, ns2, ns3, ns4
so for example, my web server uses 2 nics, one nic has
nic1 zone

nic2 zone

this is where I get confused. Should I set my esxi server up with 2 nics, with the same dns?
but that doesn't seem right since the DNS server is in windows, within the ESXi server.

I would almost think the ESXi DNS should be the external DNS, or
also, should it be a single IP, load balanced, or 2 Different Ip's?

I hope I am making sense, input appreciated.

attached is my network topology

Who is Participating?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Okay, so you have four IP address that are Internal DNS servers.

Login to the ESXi console

Open the /etc/resolv.conf file using a text editor.

and add the additional DNS servers.
TheWebGuy38Author Commented:
oops, attached A psd, should be a jpg, sorry

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
use the DNS servers which are internal to you LAN for esx servers to resolve servers and computers on your internal lan.

you external dns servers probably provide name resolution for internet domain names.

but you could link the internal dns servers to external dns servers by configuring forwarders on the first set of dns servers. and then you have have one pair of dns servers that are being used to resolve ip addresses in the network. if internal dns doesnt have the ip address being queried it will request from forwarder.
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

TheWebGuy38Author Commented:

I could use

or I have the 4 ns server ips

but I think I can only use 2 of these. at least at console
the internal vswitch is connected to the lan so you can use dns in or out out the esx server
TheWebGuy38Author Commented:
if I go to vmkernal, I see some dns entries, but they are grayed out and can't edit. also, Can I set a second adaptor, so 1 points to ns1, ns2, and another to ns3 ns4?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
use the internal dns entries.

dns is modified from the esx console, not the vsphere client, under network settings
TheWebGuy38Author Commented:
I guess don't undersatand

ns1, ns2, ns3, ns4 are my internal DNS

so how do I add them all, so if one server goes down, the other stays online,

I could use 1 IP from each server, instead of all 4
lnkevinCommented: seems to be your router and dns. For your esxi, you should use the internal dns out side of your physical server (not the ones inside of your ESXi) if you would like your server connected to the Internet. Remember ESXi comes up before the internal DNS vm's can be started. However, for all the vm's inside of ESXi (webservers ....) you can using the internal DNS

For the questions regarding to load balancing, if you have 2 physical nic cards, you can team them up in service console.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.