I have a laptop that I use on my home LAN, my work LAN and my work VPN via my home LAN through OpenConnect. In addition, I also sometimes use TorGuard, which is a OpenVPN connection. All of these are configured via NetworkManager in nm-applet.

If on my work LAN or work VPN, I must have the private DNS server and search domain because there are a number of servers that only resolve to hostnames within my network and have a standardized DNS suffix. This is set in the nm-applet settings for my work VPN and I have a separate ethernet connection profile for the work LAN.

I am in a situation where regardless of what network I am currently on, I find that at seemingly random but often times I am unable to resolve hostnames and lose my search domain suffix if on my work VPN/LAN.

To fix the problem, and this fix works every time, I have to manually perform a sudo service dnsmasq restart . This resets my DNS servers and search domain to what they are supposed to be and everything works correctly again, for a few minutes.

I keep having to restart the dnsmasq service to fix the domain resolution problem.

Using Ubuntu 14.04 LTS in a Dell Latitude E6540. The ethernet controller is Intel Corporation Ethernet Connection I217-LM (rev 04) and the wifi card Intel® Centrino® Advanced-N 6235.

I've been asked to provide my network devices. I highly doubt hardware is the problem here, but I will humor you. There is one network card and one wifi card. Both work perfectly with the exception of having to restart the dnsmasq service repeatedly to get DNS resolution working.

I sometimes use the wifi, the bluetooth does work but I don't use it for networking. I usually am using ethernet.