Score:-1

OpenVPN changes DNS settings in Windows Server

cn flag

On my Windows Server 2022 Standard, I have two network adapters.

  1. The physical network card, which has IP 10.0.22.10/24
  2. The OpenVPN virtual WinTun adapter, which has IP 10.0.30.1/24

Note that I am using the netmask 255.255.255.0, not 255.0.0.0.

Beside OpenVPN, the server has the roles DHCP, DNS, and ActiveDirectory.

As soon as someone connects to OpenVPN, then the WinTun adapter will get IP 10.0.30.1. This IP address is added to the DNS Server, so that my hostname resolves to 10.0.22.10 and 10.0.30.1

The problem: The clients in the company network sometimes resolve the servername to 10.0.30.1, and therefore they cannot reach the server, since 10.0.30.1 is bound to the virtual network adapter and not the physical network adapter.

How can I avoid that the IP address of the virtual WinTun adapter gets automatically added to the DNS Server as "Static IP"?

enter image description here

Daniel Marschall avatar
cn flag
This is what I "love" about StackExchange: Downvoting without telling the OP why. How should OP improve?
Score:0
cn flag

I found the answer here: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/unwanted-nic-registered-dns-mulithomed-dc

  1. Under Network Connections Properties: On the unwanted NIC TCP/IP Properties, select Advanced > DNS, and then unselect Register this connections Address in DNS.

  2. Open the DNS server console, highlight the server on the left pane, and then select Action > Properties. On the Interfaces tab, select listen on only the following IP addresses. Remove unwanted IP address from the list.

  3. On the Zone properties, select Name server tab. Along with FQDN of the DC, you'll see the IP address associated with the DC. Remove unwanted IP address if it's listed.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.