Computing.Net > Forums > Networking > VPN DNS issue

VPN DNS issue

Reply to Message Icon

Original Message
Name: Vasilis
Date: February 22, 2007 at 03:34:11 Pacific
Subject: VPN DNS issue
OS: Win XP Pro SP2
CPU/Ram: 1,2GHz, 1.5MB
Model/Manufacturer: Dell latitude d420
Comment:

Hello,

I have the following problem:

I have a VPN set up so that I can connect to my office computer. This is set up so that internet traffic goes through my isp, and not through the VPN (split tunneling).

The problem is with DNS though: When I connect to the VPN, all name queries seem to be automatically routed to the VPN DNS server, which only knows about local names.
(I used a sniffer to verify this).
So, ping by ip works fine, but ping by name fails.

No other user of the same VPN has this problem. I also have a second computer, with Win 2K, that doesn't display this problem when connecting to the VPN.

Any thoughts? I am a bit stuck. Thank you very much!


Report Offensive Message For Removal

Response Number 1
Name: SmittyZ3M
Date: February 22, 2007 at 12:28:57 Pacific
Subject: VPN DNS issue
Reply: (edit)

What is the OS of the computer running the VPN server? How is your home PC getting an IP address? How do the other PC's that can resolve by name connecting to the VPN?

Can you post your IP settings once you are connected to the VPN? I have some ideas, but I need a little more detail such as IP addresses, router configs, etc.


Report Offensive Follow Up For Removal

Response Number 2
Name: Vasilis
Date: February 22, 2007 at 13:39:25 Pacific
Subject: VPN DNS issue
Reply: (edit)

Thanks for the interest.

-- The computer in question is a laptop and is getting an IP address in one of two ways: from an ADSL modem/router, when I'm at home, or connects to a port with a fixed IP assigned to it at an office network (different office). In both cases, the situation re: VPN/DNS issues is the same.

The other PCs that can resolve by name are connecting the exact same ways.

In the case of the problem computer, when the VPN is connected, nslookup returns an answer from the local VPN nameserver only.

Thanks again.


Report Offensive Follow Up For Removal

Response Number 3
Name: SmittyZ3M
Date: February 22, 2007 at 13:45:34 Pacific
Subject: VPN DNS issue
Reply: (edit)

I need more information about the PC at your office that you are connecting to. It's OS version, its IP address, etc.

Is this a PPTP Microsoft VPN?


Report Offensive Follow Up For Removal

Response Number 4
Name: Vasilis
Date: February 22, 2007 at 14:35:53 Pacific
Subject: VPN DNS issue
Reply: (edit)

It's actually a file server, running Win 2003 server.

The VPN is L2TP IPSec.

As for IPs: both the VPN and my home network are in the 10.xxx.xxx.xxx range (10.0.0.x for the home network, 10.255.255.x for the VPN network). The VPN server's internal IP is 10.255.255.254.


Report Offensive Follow Up For Removal

Response Number 5
Name: SmittyZ3M
Date: February 22, 2007 at 20:43:48 Pacific
Subject: VPN DNS issue
Reply: (edit)

Ok, I'm not too familiar with those types of VPNs, but I can still try to help.

When you are at home and you connect to the VPN, is the VPN virtual connection issued an IP address on the 10.255.255.0/?? subnet? Is it issued an address for a DNS server? In theory, broadcast packets will not traverse through router interfaces. In Windows 2000 and later, name resolution on Windows networks is done mostly through DNS or WINS Servers. Other OS's just use broadcast packets for name resolution.

I have my Win2k Server PPTP VPN Server configured to hand out IP addresses to VPN clients from its DHCP Pool. I am issued DNS Server addresses, but they are the external pointer addresses that the Win2k server points to, not its private internal address.

What DNS Server address is your VPN connection being assigned?


Report Offensive Follow Up For Removal


Response Number 6
Name: Vasilis
Date: February 23, 2007 at 01:15:00 Pacific
Subject: VPN DNS issue
Reply: (edit)

When you are at home and you connect to the VPN, is the VPN virtual connection issued an IP address on the 10.255.255.0/?? subnet?

** Yes.

Is it issued an address for a DNS server?

** Good question. How can I find out?

Many thanks!


Report Offensive Follow Up For Removal

Response Number 7
Name: Vasilis
Date: February 23, 2007 at 06:56:47 Pacific
Subject: VPN DNS issue
Reply: (edit)

Actually, I did find out.

It is issued a DNS server address. It was being issued the internal DNS server address (ie, a 10.255.255.x address, serving VPN local names). We changed it so now it provides an external DNS server address.

With this change, nslookup works fine, but ping and internet browsing still don't work. Using a packet sniffer, I notice that ping and http requests generate NBNS queries, instead of DNS queries, which are sent, via the Ethernet interface, to a local address (10.255.255.255) and die.



Report Offensive Follow Up For Removal

Response Number 8
Name: SmittyZ3M
Date: February 23, 2007 at 14:05:51 Pacific
Subject: VPN DNS issue
Reply: (edit)

Can you change it back so the DNS server that is issued to VPN clients is the internal 10.255.255.x address? I would think this name server would have the DNS records needed?

If your VPN connection is anything like PPTP VPN connections, go to the TCP/IP properties of the connection. See if there is an Advanced section. If there is, look for a setting that says "Use default gateway on remote network". If it's checked, uncheck it. Reconnect. See what happens.


Report Offensive Follow Up For Removal

Response Number 9
Name: Vasilis
Date: February 23, 2007 at 14:28:39 Pacific
Subject: VPN DNS issue
Reply: (edit)

It's unchecked
First thing I did, a week ago :-)
The 10.255.255.xxx DNS server is VPN-local, ie it only knows about local resources. We tried this, and the problem is as described. When we changed it, at least nslookup works (not much consolation though).


Report Offensive Follow Up For Removal

Response Number 10
Name: SmittyZ3M
Date: February 23, 2007 at 15:08:00 Pacific
Subject: VPN DNS issue
Reply: (edit)

Do you have your external pointer addresses set correctly?


Report Offensive Follow Up For Removal

Response Number 11
Name: Vasilis
Date: February 23, 2007 at 15:57:25 Pacific
Subject: VPN DNS issue
Reply: (edit)

Hhmm. Not clear what this means. How do I set them?


Report Offensive Follow Up For Removal

Response Number 12
Name: SmittyZ3M
Date: February 23, 2007 at 22:11:43 Pacific
Subject: VPN DNS issue
Reply: (edit)

It's in the DNS settings config on the Win2003 box. If DNS is enabled on an AD server, it will resolve all local names, ie names that it learns about on the local LAN through DHCP. You assign the DNS server "external IP addresses", typically the DNS servers of your ISP. These will then be queried if a client on your LAN wants to resolve www.google.com for example.

Client query --> Local DNS server --> ISP DNS Server

Try that and let me know.



Report Offensive Follow Up For Removal

Response Number 13
Name: tifkat
Date: March 12, 2007 at 19:43:20 Pacific
Subject: VPN DNS issue
Reply: (edit)

I have exactly the opposite issue. My DNS is staying at what the ADSL modem sets it. When I try to ping an internal host (name, not IP) it cannot resolve the IP address.

The PPTP VPN connection is assigned an IP and DNS records, (they show up in ipconfig /all) but the default nameserver is still my ADSL modem/router.

How do I force Windows to use the VPN DNS server as the default DNS server?


Report Offensive Follow Up For Removal

Response Number 14
Name: Techtanya
Date: May 31, 2007 at 14:10:33 Pacific
Subject: VPN DNS issue
Reply: (edit)

on the client

1.
Click Start, click Run, type regedit32 in the Open box, and then click OK.

2.
Click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage

3.
In the right pane, double-click Bind.

4.
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.

5.
Click OK, and then quit Registry Editor.

Tech Tanya
SR Eng


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: VPN DNS issue

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software