---
title: "DNS-Weiterleitung in NSX konfigurieren (EN)"
description: "Discover how to add a DNS forwarder to NSX"
url: https://docs.ovhcloud.com/de/guides/hosted-private-cloud/powered-by-vmware/nsx-configure-dns-forwarder
lang: de
lastUpdated: 2023-02-27
---
# DNS-Weiterleitung in NSX konfigurieren (EN)

## Objective

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.**

:::warning
OVHcloud provides services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they work properly.

This guide is designed to assist you as much as possible with common tasks. However, we recommend contacting a [specialist provider](https://partner.ovhcloud.com/de/directory/) if you experience any difficulties or doubts when it comes to managing, using or setting up a service on a server.

:::

## Requirements

- Being an administrative contact of your [Hosted Private Cloud infrastructure](https://www.ovhcloud.com/de/enterprise/products/hosted-private-cloud/) to receive login credentials
- A user account with access to the <ManagerLink to="/">OVHcloud Control Panel</ManagerLink>
- You need to have **NSX** deployed with a segment configured in your NSX configuration. Use our guide on [segment management in NSX](/de/guides/hosted-private-cloud/powered-by-vmware/nsx-segment-management.md) for more information.

## 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
`.
![Configure DNS forwarder 01](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/01-configure-dns-forwarder01.png)
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**
.
![Configure DNS forwarder 02](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/01-configure-dns-forwarder02.png)
Click `Add New Default Zone
`.
![Configure DNS forwarder 03](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/01-configure-dns-forwarder03.png)
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
`.
![Configure DNS forwarder 04](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/01-configure-dns-forwarder04.png)
Click `SAVE
`.
![Configure DNS forwarder 05](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/01-configure-dns-forwarder05.png)
Your DNS forwarder is active and usable on all your overlay or VLAN segments connected to your north-south gateway (ovh-t0-gw).

![Configure DNS forwarder 06](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/01-configure-dns-forwarder06.png)
### Editing the DHCP server to use a DNS forwarder

If you have configured DHCP servers in NSX as described in our [Configuring DHCP](/de/guides/hosted-private-cloud/powered-by-vmware/nsx-configure-dhcp-onsegment.md) 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.
![Modify DHCP overlay segment 01](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/02-modify-dhcp-overlay-segment01.png)
Click `EDIT DHCP CONFIG
`.
![Modify DHCP overlay segment 02](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/02-modify-dhcp-overlay-segment02.png)
Click the `X
` to the right of the existing DNS in the **DNS Servers**
 option to remove it from the configuration.
![Modify DHCP overlay segment 03](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/02-modify-dhcp-overlay-segment03.png)
Add your DNS redirector IP address in **DNS Servers**
 as `192.168.200.1
` and click `APPLY
`.
![Modify DHCP overlay segment 04](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/02-modify-dhcp-overlay-segment04.png)
Click `SAVE
`.
![Modify DHCP overlay segment 05](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/02-modify-dhcp-overlay-segment05.png)
Click `CLOSE EDITING
`.
![Modify DHCP overlay segment 06](/images/hosted-private-cloud/powered-by-vmware/nsx-04-configure-dns-forwarder/02-modify-dhcp-overlay-segment06.png)
Your segment's DHCP settings now use the DNS forwarder you created earlier.

## Go further [](#)
[Getting started with NSX](/de/guides/hosted-private-cloud/powered-by-vmware/nsx-first-steps.md)

[Segment management in NSX](/de/guides/hosted-private-cloud/powered-by-vmware/nsx-segment-management.md)

[DHCP Configuration](/de/guides/hosted-private-cloud/powered-by-vmware/nsx-configure-dhcp-onsegment.md)

[VMware documentation on DNS in NSX](https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.2/administration/GUID-A0172881-BB25-4992-A499-14F9BE3BE7F2.html)

If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/de/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.

Join our community of users on [https://community.ovh.com/en/](https://community.ovh.com/en/).
