Friday 15 January 2010

FIXED: DNS resolution in Windows 7 when connected to a Linux-based PPTP server

Right, I racked my brains over this one for the past few days unable to working why when I was connecting to the Linux-based PPTP (pptpd) server I put together in the office I couldn't resolve any hostnames without using the FQDN (Fully Qualified Domain Name).

I read various posts on many sites with people having the same problem in Windows XP or Vista and a registry fix which was even suggested by Microsoft to solve the problem, alas though I'm using Windows 7 and this didn't work.

After much chin-rubbing and head scratching I found the answer!

Go into your VPN's connection properties and into the Networking tab. Go into the properties for IPv4 and click on Advanced. Go into the DNS tab and enter your DNS suffix in the box near the bottom labelled 'DNS suffix for this connection'.

The next time you connect you should find you can now ping/access hosts using just the standard hostname.