OpenVPNDNSRouting Registry key not deleting on disconnect

Post Reply
DaMiBu
OpenVpn Newbie
Posts: 3
Joined: Thu Jun 01, 2017 9:40 am

OpenVPNDNSRouting Registry key not deleting on disconnect

Post by DaMiBu » Wed Nov 21, 2018 1:00 pm

Hello

When you connect to OpenVPN a key called OpenVPNDNSRouting auto creates which has DNS server settings from the OpenVPN server. When you disconnect this key then auto deletes. (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DnsPolicyConfig\OpenVPNDNSRouting)

I have a one client where the key creates on connection but will not never auto delete on when it disconnects from OpenVPN resulting it it still trying to use the OpenVPN DNS servers so nothing will then work as DNS cannot be contacted.

Removing / reinstalling the client does not help.

I have 100's of users who use OpenVPN and issue does not occur anywhere except this one. Next step is to replace the laptop but user is typically travelling so want to avoid this.

In meanwhile the user has a script on their desktop they can run to manually fix when they disconnect "REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DnsPolicyConfig\OpenVPNDNSRouting /f"

Laptop is Windows 10.

Anyone ever see this?

Image

novaflash
I should be on the dev team.
Posts: 838
Joined: Fri Apr 13, 2012 8:43 pm

Re: OpenVPNDNSRouting Registry key not deleting on disconnect

Post by novaflash » Wed Nov 21, 2018 1:05 pm

Doesn't sound familiar at all. Check permissions of the keys, compare with a system that is working normally, see if there's a difference?

DaMiBu
OpenVpn Newbie
Posts: 3
Joined: Thu Jun 01, 2017 9:40 am

Re: OpenVPNDNSRouting Registry key not deleting on disconnect

Post by DaMiBu » Tue Feb 05, 2019 11:32 am

This issue is still randomly happening at multiple clients now. I have tested every possible scenario to try emulate and pretty sure it has to do with how the user is ending their session however cannot pin point it.

novaflash
I should be on the dev team.
Posts: 838
Joined: Fri Apr 13, 2012 8:43 pm

Re: OpenVPNDNSRouting Registry key not deleting on disconnect

Post by novaflash » Wed Feb 06, 2019 11:17 am

I'll let someone here in the company have a look at it and see what we can do from our end about this problem.

Post Reply