Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When connecting to a VPN using VPNC Front End for Windows 8, web browsers fail to resolve DNS addresses. I can use nslookup from the terminal, and entering the IP addresses directly into the browser works, so there is a valid connection.

How do I fix this?

share|improve this question

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

share|improve this answer
up vote 0 down vote accepted

This trick didn't work under Windows 8.1. Instead I had to following the instructions found at

Click Start, click Run, type regedit32 in the Open box, and then click OK.
Click the following registry subkey:
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\{072F5025-EBEB-4408-BE1C-1E015F4838FD} (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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .