Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Here is my /etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static

Any tips on how to troubleshoot/resolve this?

Thanks in advance.

share|improve this question
up vote 1 down vote accepted

Did you install resolvconf ?

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

share|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 '12 at 14:17

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.

share|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

@AJ. the answer could come too late, but the question is always valid: to force a DNS configuration in a VPN managed by Network Manager, other than use GUI tools, you could open the file:


and, in section:




Another method is to configure dnsmasq directly:

in the file:


add (for example) a line:


to forward all DNS requests for all hosts in network 10. to the DNS specified

then, of course, restart dnsmasq:

   $ sudo service dnsmasq restart
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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