Практически не отличается от установки и настройки на Centos
https://openwrt.org/docs/guide-user/services/dns/dot_dnsmasq_stubby
https://openwrt.org/docs/guide-user/services/dns/dot_dnsmasq_stubby
Код: Выделить всё
# Install packages
opkg update
opkg install dnsmasq stubby
# Enable DNS encryption
uci -q delete dhcp.@dnsmasq[0].server
uci get stubby.global.listen_address \
| sed -e "s/\s/\n/g;s/@/#/g" \
| while read -r STUBBY_SERV
do uci add_list dhcp.@dnsmasq[0].server="${STUBBY_SERV}"
done
# Enforce DNS encryption for LAN clients
uci set dhcp.@dnsmasq[0].noresolv="1"
uci commit dhcp
/etc/init.d/dnsmasq restart