options {
recursion yes;
allow-query { any; };
forwarders {
101.198.198.198;
101.226.4.6;
};
dnssec-validation no;
auth-nxdomain no;
listen-on-v6 { any; };
};
systemctl restart bind9
重启服务。
DOMAIN=***.n.360.net sh -c "$(curl -sSL http://beijing.xstore.qihu.com/dns-360/install)"
dig @[DNS服务器IP] hc.n.360.net TXT
进行测试,结果为 NOERROR 且包含 360DNS
Registered
字样则继续下一步。
nslookup -q=TXT hc.n.360.net[DNS服务器IP]
进行测试,结果为 NOERROR 且包含
360DNS Registered字样则继续下一步。
DOMAIN=***.n.360.net LISTEN_IP=127.0.0.1 LISTEN_PORT=3053 MODE=plugin sh -c "$(curl -sSL http://beijing.xstore.qihu.com/dns-360/install)"
dig @127.0.0.1 -p 3053 hc.n.360.net TXT
进行测试,结果为 NOERROR 且包含
360DNS Registered 字样则继续下一步。
options {
recursion yes;
allow-query { any; };
forwarders {
127.0.0.1 port 3053;
101.198.198.131;
};
dnssec-validation no;
auth-nxdomain no;
listen-on-v6 { any; };
};
systemctl restart bind
重启服务。
server:
do-not-query-localhost: no
forward-zone:
name: "."
forward-addr: 127.0.0.1@3053
forward-addr: 101.198.198.131
strict-order
server=127.0.0.1#3053
server=101.198.198.131
systemctl restart dnsmasq
重启服务。
nslookup -q=TXT hc.n.360.net 127.0.0.2
进行测试,结果为 NOERROR 且包含
360DNS Registered 字样则继续下一步。
DOMAIN=***.n.360.net MODE=bypass sh -c "$(curl -sSL http://beijing.xstore.qihu.com/dns-360/install)"
360sdns status
。
360sdns uninstall
。
360sdns stop
。
360sdns restart
。
360sdns log
。
360sdns version
。
DOMAIN=***.n.360.net MODE=ip-update sh -c "$(curl -sSL http://pub1-bjyt.s3.360.cn/360-saas/install)"
https://sdns.360.net/apis/v1/plist?uid=***
。
DOMAIN=qwer1234.n.360.net MODE=personal sh -c "$(curl -sSL http://pub1-bjyt.s3.360.cn/360-saas/install)"
sdns.360.net n.360.net pro.n.360.net beijing.xstore.qihu.com 101.198.191.4 101.198.198.198 101.198.199.200 101.226.4.6 218.30.118.6 123.125.81.6 140.207.198.6 123.125.81.60 36.99.171.138 117.135.153.199 101.198.198.131 180.163.239.249 101.199.255.246 180.163.246.66 101.198.3.179 106.120.164.231 101.199.252.8 140.207.202.178 36.110.234.252 101.198.3.80 111.206.127.27 39.156.85.160
360sdns tools -action test-network
。
360sdns tools -action test-network
。
lsof -i:53
命令或根据报错提示中PID找到占用53端口的进程,请确认本机没有对外提供DNS服务,占用端口的进程可以关闭。如果软件在对外提供服务,请使用插件模式安装。处置办法如下:
systemctl status dnsmasq.service
。
systemctl stop dnsmasq.service
,后禁止开机启动
systemctl disable dnsmasq.service
。
[Resolve]
DNS=101.198.198.131 101.198.198.198
DNSStubListener=no
sudo systemctl daemon-reload
sudo systemctl restart systemd-resolved
ll /etc/resolv.conf
,如果软链显示如下,则不需要改动:
/etc/resolv.conf -> /run/systemd/resolve/resolv.conf
,否则设置软链
sudo ln -s -f /run/systemd/resolve/resolv.conf /etc/resolv.conf
。