VM:
https://gist.github.com/ryuheechul/e829b7846a965638deeb122bdd0b403c
uci set dhcp.lan.ignore='1'
uci set dhcp.lan.dhcpv4='disabled'
uci set dhcp.lan.dhcpv6='disabled'
uci set dhcp.lan.ra='disabled'
uci set dhcp.lan.ra_flags=''
uci commit dhcp
/etc/init.d/odhcpd restart
uci show dhcp.lan | grep -E 'ignore|dhcpv6|ra'
https://openwrt.org/docs/guide-user/installation/openwrt_x86
ext4-combined-efi.img.gz works well.
You should be able to achieve that effect by setting option dns 1 in each config host section of /etc/config/dhcp. This is also the default in LuCI since a while.
To mass-update an older existing /etc/config/dhcp, use
i=0; while uci -q set "dhcp.@host[$((i++))].dns=1"; do :; done
uci commit dhcp
/etc/init.d/dnsmasq restart
backup-openwrt-2025-10-18.tar.gz



Abandoned for just using CloudFlare DNS servers (1.1.1.2, 1.0.0.2).
Previously: