Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

According to resolv.conf contains only a single record for local dnsmasq server

When I connect to OpenVPN server using network-manager-openvpn my /var/run/nm-dns-dnsmasq.conf gets updated right



/etc/resolv.conf gets updated as well when, according to the article above, it shouldn't

nameserver #this is useless, dnsmasq is responsible for this now
nameserver #this should be the only line

And only domain names in VPN subnames are resolved

When I manually remove the first line, everything works as expected, resolving domain names in both LAN and VPN subnets

Is it a bug? Or I can have it fixed somehow?

share|improve this question

You don't seem to have resolvconf installed. Install it and then reboot.

sudo apt-get install resolvconf

If it is already installed then do the following and then reboot.

sudo dpkg-reconfigure resolvconf
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.