Saturday, September 16, 2017
Ubuntu 12 04 new DNS and VPN issues
Ubuntu 12 04 new DNS and VPN issues
In Ubuntu 12.04 theres 2 major changes with regards to DNS resolving:
1. resolvconf is now used by default
2. a local resolver is now hardcoded into network manager and is used by default
This means that youll see nameserver 127.0.0.1 in your /etc/resolv.conf at all
times, while the real DNS config is managed by dnsmasq started by NetworkManager.
You can see the current DNS config in /run/nm-dns-dnsmasq.conf
There are numerous issues that this approach introduces. More info on the change and possible issues/solutions are here - http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/
My issue was that one of the VPN providers wasnt properly sending the search domain, so I couldnt access the servers by names on this network.
The easies solution is to add the DNS and search domains manually

1. resolvconf is now used by default
2. a local resolver is now hardcoded into network manager and is used by default
This means that youll see nameserver 127.0.0.1 in your /etc/resolv.conf at all
times, while the real DNS config is managed by dnsmasq started by NetworkManager.
You can see the current DNS config in /run/nm-dns-dnsmasq.conf
There are numerous issues that this approach introduces. More info on the change and possible issues/solutions are here - http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/
My issue was that one of the VPN providers wasnt properly sending the search domain, so I couldnt access the servers by names on this network.
The easies solution is to add the DNS and search domains manually

download file now