There are something confusing about dnsmasq on ubuntu 15.10. I would like to write them down here, in case I might forget down the road.
You can find the answer in the file
If you notice the line
dns=dnsmasq, you may figure out that it is
network-manager that starts dnsmasq. So if you run
sudo service network-manager restart,
dnsmasq will get retarted too.
How to let network-manager not use dnsmasq, but use the dns servers specified in the file
/etc/resolv.conf instead? Just comment the line
/etc/NetworkManager/NetworkManager.conf would be fine, as follows:
/etc/resolv.conf, add your dns server:
Finally restart network-manager, you will find out the dns server has changed.
sudo service network-manager restart