So I’ve given you an introduction on my DNS setup – this was the “What”. Now, we’ll move on into the “How”.
We have to configure the DNS clients as well as the two DNS Servers. Is there any point showing you how to setup the DNS Clients? I hope not – though here it is, just in case:
SETUP THE DNS CLIENT
Regardless which OS you are using, all you need to do is edit the TCP/IP properties of the relevant NIC and setup the IP address of the DNS server.
For specific instructions on how to do this on Windows/Linux/Mac, please use the actual OS documentation or simply, google it. Even more so, the process will be slightly different based on which version/distribution you are using.
In Linux it depends whether you are on the GUI or not. Furthermore, it once again depend on which Linux distribution you are using. Google is your best friend in this case too.
On Macs, you need to go to Network Preferences -> Advanced -> DNS tab.
Anyway, see below two screenshots, one from my Mac, another form my Windows VM running within Fusion:
Setting DNS server on ESXi host as well as on the vCenter Appliance (Linux based), please check vSphere documentation where things are really clearly explained. I am however providing you some screenshots below:
For the ESXi host – this server is the one which will be hosting my VCAP-LAB; it is therefore part of my LAN – hence it’ using my local LAN for DNS resolution:
For the VCSA (vCenter Appliance), the same idea apply. Although this is a VM running within my physical ESXi host, it still serves management to the VCAP-LAB *hosting* infrastructure and therefore, it will also use the LAN DNS Server.
SETUP THE DNS SERVERS
As mentioned before, I will have two DNS servers. One running on Win2k3 Server – this will hold the master zone for the vcap-lab.cm domain; it will also forward queries for the home.cm domain to the second DNS Server.
The second server is my LAN DNS server running as an app on my Synology NAS – it will hold the master zone for the home.cm domain and forward queries for the vcap-lab.cm domain to the first DNS server.
So here are few screenshots showing you the configuration on my Synology DNS Server App – look at the different, highlighted options …
Notice how I have configured two *master* zones – for forward and reverse DNS resolution. I have also set two forward and reverse zones, only this time dedicated for forwarding only. You can see below how I’ve set it up so that any queries to the vcap-lab.cm domain, are forwarded to the 192.168.1.231 IP address – this is in fact the DNS server hosting the master zone for the vcap-lab.cm domain.
Similarly, you would configure the Windows DNS server as well.
There would be a few more things to show though since this is not a DNS course, I am just hoping you get the idea.