Is possible to disable dhcp/dns server from cli?
Or dhcp only?
You can stop/disable the entire dnsmasq service:
/etc/init.d/dnsmasq stop
/etc/init.d/dnsmasq disable
But often this is not really the ideal method, as it is possible for the service to be re-enabled and you really want to make sure that the specific config is specified explicitly to not run the DHCP server. So, instead, if you need to stop the DHCP server, you can use either the UCI commands or directly edit the dhcp config file to set the specific server (such as for the lan interface) with the ignore
option.
option ignore '1'
1 Like
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.