I'm trying to setup vpnc on Ubuntu. When I run vpnc, my resolv.conf file does not get changed. It still only contains my ISP's name servers:

#@VPNC_GENERATED@ -- this file is generated by vpnc
# and will be overwritten by vpnc
# as long as the above mark is intact
nameserver 65.32.5.111
nameserver 65.32.5.112

Here is my /etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
        address 192.168.1.3
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns-nameservers 65.32.5.111 65.32.5.112

Any tips on how to troubleshoot/resolve this?

Thanks in advance.

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted
+100

Did you install resolvconf ?

If you did, try removing it and see if it works.

link|improve this answer
@Studer - bingo, that fixed it. I wonder why apt-get install vpnc requires resolvconf, but you can just uninstall resolvconf? Odd... – AJ. Feb 12 '10 at 22:00
I just wanted to say thanks.. saved my life. – José Leal Apr 27 at 14:17
feedback

I don't remember this being a problem. On the Editting [vpn name] dialog box, IPv4 Settings tab, my Method is set to Automatic (VPN), rather then "Automatic (VPN) addresses only", and name resolution to the internal network worked fine.

link|improve this answer
@EricJLN - "dialog box"...I'm just using the vpnc command in a terminal. I'm guessing there's a config file setting that maps to what you're referencing in your answer? – AJ. Feb 11 '10 at 22:04
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.