Amongst the various services that the NSX Edge provide is DNS forwarding. A NSX edge relay name resolution requests from clients to external DNS servers. In this blog post, we will go through the configuration the we will test that all is working as expected.
The setup is quite simple. I have a couple of VMs connected to a logical switch which is then connected to an LDR. The LDR is connected to an Edge via a transit LS. The Edge is exchanging routes with a Vyatta router using OSPF. Static routes are configured on the Edge to reach the networks attached to the LDR. My DNS server is Windows box that lives outside my NSX environment.
In NSX, double click on your Edge > Settings > Configuration
Enter your DNS details and configure how much cache you would like to reserve. Logging can also be turned on if required.
That is all that is needed from the Edge side! It can’t be any easier can it? (:
Let’s test if all is working using one of my web VMs.
Below is the web01 configuration:
I checked my DNS server and I can confirm that an A record does exist for web02 which we will be using to test if DNS forwarding is working.
On my web01 vm, I am going to run a nslookup on web02 to check if resolution is working as expected.
We can see that are receiving the correct record for web02 and that the Edge is the one that is doing the forwarding.
Logon to your Edge and check the service is running
We can also the configuration by issuing the command show dns configuration
If you need to check the logs, use the show log command
Thank you for reading. Be social share (:
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count:
My name is Amine El Badaoui and I currently live in Aylesbury, a small town in the south east of England
I have been working in the IT industry for few years now and specialise in VMware virtualisation, data centre infrastructure and cloud technologies. Over the years I have obtained numerous industry certifications from Microsoft, Netapp and VMware.I currently work as a VMware Product Engineer @ https://www.rackspace.com/
This blog represents my random technical notes and thoughts. The thoughts expressed here do not reflect my current employer in anyway.