How to set up my ESXi host in DNS

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
Dwight BaerStudentAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Phil DavidsonCommented:
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 BaerStudentAuthor Commented:
nslookup esxi6. mittens.local works
Dwight BaerStudentAuthor Commented:
nslookup 192.168.1.12 also works
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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.
lruiz52Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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 ConsultantCommented:
Make sure you have DNS working correctly!

There are many servers required for Horizon 6.0.
centierbankCommented:
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 BaerStudentAuthor 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 ConsultantCommented:
other than ESXi is not Windows so will not use WINS!

You don't need a WINS server or service!
Dwight BaerStudentAuthor Commented:
Much thanks.  Next, I'll try to set up Horizon 6 and virtual desktops, which is the whole purpose of this exercise.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.