How to set up my ESXi host in DNS

Dwight Baer
Dwight Baer used Ask the Experts™
on
My ESXi 6.0 host can be seen by IP address but not by hostname.

i.e. "ping 192.168.1.12" works, but "ping ESXi6" fails.

Is the solution to add a New Host record in DNS?  Assuming yes, I did that.

Now, "ping ESXi6" still doesn't work, but "ping ESXi6.Mittens.local" succeeds.

But how does that work?  The host boots first, and then the DC boots as a VM on top of that host.  How can the host be part of a domain that doesn't exist until after its VM boots?  

In particular, in my vSphere Client:  host --> Configuration --> Software --> DNS and Routing --> Properties, should I enter the domain name there?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Do you have a DNS server on the network?  If so, the change would happen there.  Do you know the FQDN (e.g., the fully-qualified domain name)?  

Does this work from two different servers?

ping ESXi6.Mittens.local

Open in new window


Can you run an nslookup x.x.x.x ? (where x.x.x.x is the IP address of the machine you want to have DNS)  The results could tell you if DNS was set up properly.


How can the host be part of a domain that doesn't exist until after its VM boots?  

I don't know the answer.
Dwight BaerStudent
Commented:
nslookup esxi6. mittens.local works
Dwight BaerStudent
Commented:
nslookup 192.168.1.12 also works
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
but ping esxi6 does not ?

on your workstation, are you also in the mittens.local name space ?

normally, you would have more than a single host, which have multiple DNS servers on them.

and when you take down a host, that DNS server will be migrated to another host.

With a single host, it's difficult to see the complete picture.
How can the host be part of a domain that doesn't exist until after its VM boots?
The host is not actually part or member of the domain. You are just creating or adding a host (A) record to DNS to allow you to access the host by name instead of ip.

If you want to be able to ping the host just my name "esxi6" you will need to add "Mittens.local" to the append suffix list on your network interface properties.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
also your workstation will cache DNS entries, if the DNS server is unavailable.

with vSphere is not optional to have working DNS, it's a requirement!
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Make sure you have DNS working correctly!

There are many servers required for Horizon 6.0.
Finding a device on a domain by using just the host name is done by netbios, hosts file, or a WINS server.  the WINS server would be best if you have one.
Dwight BaerStudent

Author

Commented:
Thanks centierbank.  No, I haven't used a WINS server in a long time.  I'll keep the hosts file in mind, in case I need it.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
other than ESXi is not Windows so will not use WINS!

You don't need a WINS server or service!
Dwight BaerStudent

Author

Commented:
Much thanks.  Next, I'll try to set up Horizon 6 and virtual desktops, which is the whole purpose of this exercise.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial