Как исправить DNS при подключении к vpn с помощью VPNC Front End для Windows

1615
Phyxx

При подключении к VPN с помощью VPNC Front End для Windows 8 веб-браузеры не могут разрешать адреса DNS. Я могу использовать nslookup из терминала, и ввод IP-адресов непосредственно в браузер работает, поэтому есть действительное соединение.

Как это исправить?

0

2 ответа на вопрос

0
Phyxx

I'm sharing the solution here because this drove me nuts for months.

The solution to this is to have a script that runs the following commands:

ipconfig /registerdns ipconfig /flushdns 

This script can be run after a VPN connection is established by adding it as a Post-Script.

enter image description here

0
Phyxx

This trick didn't work under Windows 8.1. Instead I had to following the instructions found at http://support.microsoft.com/kb/311218.

Click Start, click Run, type regedit32 in the Open box, and then click OK. Click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage In the right pane, double-click Bind. In the Value data box, select the "\Device\NdisWanIp" item, press CTRL+X, click the top of the list of devices, and then press CTRL+V. Click OK, and then quit Registry Editor. 

The device GUID for the VPN adapter on my system was \Device\ (I only found that by trail an error). When I put that at the top of the list, my DNS queries worked once the VPN cpnnection was established.