I am using Ubuntu 12.04.2 LTS.
If I issue the following command
sudo gedit /etc/NetworkManager/NetworkManager.conf
and change the line
dns=dnsmasq
to
#dns=dnsmasq
What will happen? Will I disable or enable DNS caching?
Additional notes:
I have been told that since I am using a VPN service, it would be better for me to do the above.
Extract from http://www.ubuntugeek.com/how-to-disable-dnsmasq-in-ubuntu-12-04precise.html
So it will not disable it as such, it will be less "safe" and efficient under certain circumstances. Like VPN
dnsmasq launched by NetworkManager doesn't cache query results by default. You can confirm this by running:
You should see
--cache-size=0
as an argument to dnsmasq, which disables caching.If you want to make sure DNS as well as any traffic is being routed through VPN (I believe you do based in your other question), you can use
iptables
to accept output traffic destined to VPN gateway and block any other destination. Thus there's no need to touch Networkmanager configuration.