How to disable DHCP in dnsmasq on Linux?

Posted on In Linux

How to disable the DHCP service in dnsmasq on Linux? That is, to leave only dnsmasq’s DNS service.


The `/etc/dnsmasq.conf` file may have lines that enable DHCP service of dnsmasq. By default, the DHCP is disabled in dnsmasq (check one example dnsmasq.conf file).

To disable DHCP service in dnsmasq, in `/etc/dnsmasq.conf`, remove or disable the lines starting with “dhcp” and then restart the dnsmasq service.