How could I turn off\on dnsmasq?
7,246
The problem was that dnsmasq wasn't installed as I assumed that it should be installed by default.
apt install dnsmasq
solves the problem.
Related videos on Youtube
Author by
Bulat M.
Updated on September 18, 2022Comments
-
Bulat M. over 1 year
Is there any way to switch on/off dnsmasq?
Obvious command
systemctl status\start\stop dnsmasq
gives nothing as it seems thatdnsmasq.service
file does not exist.Question arose as I found in docs that putting dns=dnsmasq in [main] section will make NetworkManager run dnsmasq and update resolv.conf to point to running dnsmasq accordingly. So I want to handcontrol dnsmasq manually(by putting dns=none in NetworkManager.conf) without delegating to NetworkManager.
Thanks.
-
Nick Sillito over 7 yearsI use dnsmasq on my system (ubuntu server 16.04) and
systemctl status dnsmasq
works fine. Have you installed dnsmasq? (sorry if this is patronising)apt-get install dnsmasq
-
Bulat M. over 7 yearsOh, my mistake, after finding dnsmasq on another box and not remembering installing it, I thought that it is installed by default and didn't even check, sorry wasting your time. Write ans.
-