Friday, September 29, 2017

How can I disable dnsmasq listen port 53 on the Ubuntu 16.04 LTS?

By default the DNS Server of Ubuntu 16.04 LTS will be 127.0.0.1:53, i.e., localhost.




Therefore, system will forward DNS query to the localhost first, and forward to the DNS server which obtained from the DHCP server afterward.

Actually, I didn't prefer this method, so that I would like to turn off  this mechanism via steps were listed below:

Steps:
1. Open /etc/NetworkManager/NetworkManager.conf

2. To disable dnsmasq


3. Restart NetworkManager


4. Examine /etc/resolv.conf


Done.

No comments: