Dns resolution not working while vpn is established [SOLVED]
Hi all,
I'm running vpnc from my Debian GNU/Linux 6.0.3 (squeeze) laptop. I managed to set up the vpn tunnel towards my office network, but the dns resolution is broken.
After the vpn is established, I can see that vpnc modified my resolv.conf in order to use my office dns servers.
This is my resolv.conf during vpn connection:
root@produzione:/etc/vpnc# cat /etc/resolv.conf
#@VPNC_GENERATED@ -- this file is generated by vpnc
# and will be overwritten by vpnc
# as long as the above mark is intact
# Generated by NetworkManager
domain eu.didata.local
search WAG320N
nameserver 10.159.3.195
nameserver 10.159.225.11
The vpn tunnel is working fine, since I can ping some private ip addr used in my company, but I cannot browse the office intranet due to this resolution problem.
It seems like the system is still using normal dns (not the vpn-given dns), despite the modified resolv.conf.
Another detail: on my laptop I virtualized Win 7. From windows I can connect to the office vpn (with the cisco vpn client) and all is working fine. The dns obtained after vpn is established are the same that vpnc writes into resolv.conf!
As you can see, this is the Windows 7 virtual interface created by cisco vpn client while connected to the office vpn:
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . : eu.didata.local
Description . . . . . . . . . . . : Cisco Systems VPN Adapter
Physical Address. . . . . . . . . : 00-05-9A-3C-78-00
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.249.252.226(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.249.252.1
DNS Servers . . . . . . . . . . . : 10.159.3.195
10.159.225.11
NetBIOS over Tcpip. . . . . . . . : Enabled
How can I fix this?
Thank you in advance,
pastoreerrante
Last edited by pastoreerrante; 11-07-2011 at 12:02 AM.
Reason: Solved
|