DNS server is a important role in the vSphere Lab, No lab is complete without DNS server. it is necessary in any environment for correct name resolution, I faced error in one of my earlier blog in absence of DNS server RESOLVED : FAIL TO DEPLOY OVF TEMPLATE - TASK CANCELED BY USER. In this article I am going to create A resource record and PTR resource record in DNS server, As this is my first DNS server (also an Active Directory), I am going to configure reverse lookup zone for IP to Hostname resolution also.
Open run and type dnsmgmt.msc as I run dsa.msc in Part 3 creating new user in AD. DNS Manager management console will open, expand hostname and right click Reverse lookup Zones, select New zone, it will start wizard.
I kept everything default on the next screen, settings are about, it will be primary zone and dns data will stored in active directory database, and active directory dns zone replication scope, As I will have only single domain controller option is default, dsn data be will be replicated within vcloud-lab.com domain controllers.
Next screens are important one and they are interactive. I am using complete IP version 4 in my lab and currently using 192.168.33 Network ID. if i have another subnet i can add it later whenever required.
Next are allow only secure dynamic updates, for security reason keep this option default, it is also recommended for Active Directory. and next is Summary, once clicked finish, new reverse lookup zone will be created for 192.168.33. IP range.
Now creating new host A record entry is very simple and require few clicks. expand forward lookup zone, and right click domain name (vcloud-lab.com in my case), select New Host (A or AAAA) resource record, I am adding esxi server entry with Hostname and IP address also creating associated pointer (PTR) record.
To test DNS is working correctly I use other desktop, on the network adapter dns setting configure this DNS server IP. and ping Esxi001.vcloud-lab.com and I get positive reply.