49 字
1 分钟
OpenWrt 配置 DNS over HTTPS(DoH)

安装插件:

Terminal window
opkg install luci-app-https-dns-proxy

配置 dnsmasq 转发到本地 DoH 代理:

Terminal window
service dnsmasq stop
uci set dhcp.@dnsmasq[0].noresolv="1"
uci set dhcp.@dnsmasq[0].cachesize="10000"
uci set dhcp.@dnsmasq[0].min_cache_ttl="3600"
uci set dhcp.@dnsmasq[0].max_cache_ttl="86400"
uci -q del dhcp.@dnsmasq[0].server
uci add_list dhcp.@dnsmasq[0].server="127.0.0.1#5354"
uci add_list dhcp.@dnsmasq[0].server="::1#5354"
uci commit dhcp
service dnsmasq start
OpenWrt 配置 DNS over HTTPS(DoH)
https://iiii.fun/posts/openwrt/openwrt-doh/
作者
慶靈
发布于
2025-09-14
许可协议
CC BY-NC-SA 4.0