For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/hosted-private-cloud/vmware/nsx-configure-dns-forwarder.md.
  • English

Configuring DNS Forwarder in NSX

View as Markdown

You can use a DNS forwarder in NSX that centralises all DNS queries and redirects them to external DNS servers, which reduces network traffic. You can attach the DNS forwarder to the north-south gateway (ovh-T0-gw) or the east-west gateway (ovh-T1-gw), depending on your needs.

Discover how to configure a DNS forwarder.

Requirements

Instructions

We will create a DNS redirector and attach it to the north-south gateway (ovh-t0-gw), it will be usable on all segments of NSX.

DNS forwarder configuration

Through the NSX interface go to the Networking tab and click on DNS on the left in the IP Management section. Then click ADD DNS SERVICE.

DNS configuration - NSX configure DNS forwarder - step 1

Enter this information :

  • Name : Your service name, such as dns-forwarder.
  • Tier-0/Tier-1 Gateway : Your North-South gateway ovh-T0-gw.
  • DNS Service IP : a private IP address not used in your segments, such as 192.168.200.1.

Next, click the three vertical dots below Default DNS Zone.

DNS configuration - NSX configure DNS forwarder - step 2

 

Click Add New Default Zone.

DNS configuration - NSX configure DNS forwarder - step 3

Fill in these values :

  • Name : The name of the zone, such as cdns.ovh.net.
  • DNS Servers : OVHcloud DNS server 213.186.33.99.

Then click SAVE.

DNS configuration - NSX configure DNS forwarder - step 4

 

Click SAVE.

DNS configuration - NSX configure DNS forwarder - step 5

Your DNS forwarder is active and usable on all your overlay or VLAN segments connected to your north-south gateway (ovh-t0-gw).

DNS configuration - NSX configure DNS forwarder - step 6

Editing the DHCP server to use a DNS forwarder

If you have configured DHCP servers in NSX as described in our DHCP Configuration guide, you have the option to modify the configuration to use the DNS forwarder in your DHCP configurations.

We will see how to modify the DNS server on the DHCP configuration of one of your segments.

Still from the Networking tab, click Segments on the left in the Connectivity section.

Then click on the three vertical dots next to your segment and choose Edit from the menu.

DNS configuration - NSX configure DNS forwarder - step 7

 

Click EDIT DHCP CONFIG.

DNS configuration - NSX configure DNS forwarder - step 8

 

Click the X to the right of the existing DNS in the DNS Servers option to remove it from the configuration.

DNS configuration - NSX configure DNS forwarder - step 9

 

Add your DNS redirector IP address in DNS Servers as 192.168.200.1 and click APPLY.

DNS configuration - NSX configure DNS forwarder - step 10

 

Click SAVE.

DNS configuration - NSX configure DNS forwarder - step 11

 

Click CLOSE EDITING.

DNS configuration - NSX configure DNS forwarder - step 12

Your segment's DHCP settings now use the DNS forwarder you created earlier.

Conclusion

Having read this guide, you should be able to configure a DNS forwarder.