Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

According to http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ 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

server=/example.com/10.108.23.1
server=/10.in-addr.arpa/10.108.23.1
server=10.1.0.1

BUT!

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

nameserver 10.108.23.1 #this is useless, dnsmasq is responsible for this now
nameserver 127.0.0.1 #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

1 Answer 1

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

 
discard

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.