VPN and resolv.conf problem



Howdy

I have configured vpnc to be used with nm 0.6.2 (Ubuntu Edgy). There
seems to be a problem   with adding information to /etc/resolv.conf
when a new vpn connection is established. The routes are created
correctly on tun0, ping on IP numbers work but name resolution does
not since resolv.conf is not updated.

** tun0 has got a correct IP number (10.60.1.114) ***

tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
         inet addr:10.60.1.114  P-t-P:10.60.1.114  Mask:255.255.252.0
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1412  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:500
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

*** default route points to the correct i/f ***

anos zingo:/etc$ sudo route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
raeu01.ikea.com 192.168.2.1     255.255.255.255 UGH   0      0        0 eth0
172.16.208.0    *               255.255.255.0   U     0      0        0 vmnet8
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 vmnet1
default         *               0.0.0.0         U     0      0        0 tun0

*** Try to ping router on corporate network, works fine ***

anos zingo:/etc$ ping 10.63.1.254
PING 10.63.1.254 (10.63.1.254) 56(84) bytes of data.
64 bytes from 10.63.1.254: icmp_seq=1 ttl=251 time=342 ms

*** resolv.conf does not contain any corporate dns info ***

anos zingo:/etc$ cat /etc/resolv.conf
search bredbandsbolaget.se
nameserver 192.168.2.1

cheers
Anders



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]