修改 ChinaDNS 默认端口
使用以下命令
uci set chinadns.@chinadns[-1].port='5354'
uci set chinadns.@chinadns[-1].server='114.114.114.114,127.0.0.1:5353'
uci commit chinadns
配置 dnsmasq 上游服务器
使用以下命令
uci set dhcp.@dnsmasq[-1].noresolv='1'
uci set dhcp.@dnsmasq[-1].local='127.0.0.1#5354'
uci delete dhcp.@dnsmasq[-1].server
uci commit dhcp
使用 /etc/init.d/shadowsocks start 命令启动 shadowsocks
使用 /etc/init.d/chinadns start 命令启动 ChinaDNS
使用 /etc/init.d/dnsmasq restart 命令重启 dnsmasq

注: 因为是通过 ss 进行 DNS 查询, 需要 ss 服务端支持 UDP 转发功能