I have two Windows PCs (XP and 7) in my company. Both are connected to headquarters via OpenVPN. On one of them I can access to the internal HQ website. On the second it is not possible. I did
tracert
from both and I see that:
- for the XP the first point it connects is the VNC server in HQ and it reaches website in 3 hops.
- for the 7 the first point it connects is our local router and it reaches only main router in HQ going first through many cities (10 hops). In the end it can’t load that website.
I suppose the reason is how DNS are used on both computers. But I can’t find how to modify it. Could you help, please?
Win7:
ipconfig: http://pastebin.com/VmaQHrh9
netstat: http://pastebin.com/nc7Styu5
tracert: http://pastebin.com/HMSJtrtVWinXP:
ipconfig: http://pastebin.com/Ee9qcXtg
netstat: http://pastebin.com/QdzKmJCs
tracert: http://pastebin.com/BbyUg6SP
Answer
The windows 7 box is using 192.168.0.1 for DNS (presumably a home router that uses the ISP’s DNS servers). This resolves your website panteon.cbk.waw.pl
to 148.81.24.15
.
The XP box correctly uses the internal DNS server 192.168.252.200
and resolves panteon.cbk.waw.pl
to the internal IP 192.168.252.179
.
Couple of ways round this:
- Use a unique URL for your internal website, eg.
internalweb.cbk.waw.pl
- On the Win 7 box add a HOSTS file entry for
panteon.cbk.waw.pl
using the internal IP192.168.252.179
- Set the Win 7 box to use the DNS at
192.168.252.200
as primary DNS
Main issue is that your target website resolves both internally and externally depending which DNS you use.
Attribution
Source : Link , Question Author : bLAZ , Answer Author : BlueCompute