All you need to do is disable DHCP
uci set dhcp.lan.ignore=1 or Network – Interfaces – LAN – DHCP Server – Ignore interface forum.openwrt.org/t/openwrt-as-dns-server/163458
uci set dhcp.lan.ignore=1 or Network – Interfaces – LAN – DHCP Server – Ignore interface forum.openwrt.org/t/openwrt-as-dns-server/163458