Kindly go through the following thread:
VPN static DNS settings keep changing
Have an issue where the Static DNS for the VPN keeps changing back to auto, this is a daily issue . Using Win 11 and using the windows built in VPN.
What can I check to keep this from happening
2 answers
Sort by: Most helpful
-
-
Hania Lian 21,196 Reputation points Microsoft Vendor
2023-12-22T01:30:46.43+00:00 Hello,
If your Static DNS for the VPN keeps changing back to auto on Windows 11, here are a few steps you can take to try:
1.Check VPN Settings:
Go to your VPN settings and ensure that the static DNS is properly set. If you are not sure, you can delete and recreate the VPN connection.
2.Disable Automatic DNS Settings:
Open Control Panel -> Network and Internet -> Network Connections.
Right-click on your VPN connection and go to Properties.
Click on the Networking tab, select Internet Protocol Version 4 (TCP/IPv4) and click on Properties.
Make sure that ‘Obtain DNS server address automatically’ is not selected. Instead, select ‘Use the following DNS server addresses’ and input your preferred DNS server.
3.Check for Software Interference:
If you have any third-party software installed for network configuration or VPN, they might be overriding your static DNS settings. Try disabling them temporarily to see if the issue persists.
4.Edit Registry:
Press Win+R, type regedit and hit Enter to open Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces.
You will see several folders named after different Network Interfaces. Click on each one and find the one that corresponds to your VPN connection (it should have the same IP address as your VPN).
Right-click on the folder, select ‘New’ then ‘DWORD (32-bit) Value’. Name the new value NameServer.
Double-click on NameServer and set its value data to the IP address of your preferred DNS server.
Restart your computer for changes to take effect.
Remember to back up your registry before making any changes to avoid any potential issues.
5.Update Network Adapter Drivers:
Sometimes the issue could be due to outdated network adapter drivers. Check for driver updates and install them if available.
Regards.