DNSMasq - disable DHCP while keeping DNS resolver

I would like to my OpenWRT router as a switch + DNS resolver/forwarder. DHCP would collide with another DHCP server on the network so I need to shut it down. I have DNS resolver configs for DNSMasq already, so I would prefer to stay with DNSMasq rather than looking for another DNS forwarder. Any hits how to disable DHCP and keep DNS resolver part?
Thanks in advance

1 Like

https://openwrt.org/docs/guide-user/base-system/dhcp_configuration#disabling_dhcp_role

I did something similar via UI but I have encountered strange behavior that DHCP/DNS section in web interface was blank so i thought is has something to do with miss-configuration. After removing dnsmasq package, reinstalling it again and following your guide everything is working well.
So it is resolved,
many thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.