git clone https://github.com/cnkencentos/dnsmasq_sniproxy_install20250304.git
nano /etc/sniproxy.conf
systemctl status sniproxy
解决 systemd-resolve 服务占用 53 端口的问题
使用 netstat -tlunp | grep 53 发现 53 端口被 systemd-resolved 占用 修改/etc/systemd/resolved.conf文件:
[Resolve]
DNS=8.8.8.8 1.1.1.1 #取消注释,增加dns
FallbackDNS=
Domains=
LLMNR=no
MulticastDNS=no
DNSSEC=no
Cache=yes
DNSStubListener=no #取消注释,把yes改为no
然后执行以下命令,并重启 systemd-resolved 服务:
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl restart systemd-resolved.service