测试方式

nslookup netflix.com DNS地址

有返回结果即为可以解锁

安装方式

安装

apt install dnsmasq

配置/etc/dnsmasq.conf

server=/netflix.com/DNS地址
server=/openai.com/DNS地址
resolv-file=/etc/resolv.dnsmasq.conf

新建配置/etc/resolv.dnsmasq.conf

nameserver 8.8.4.4
nameserver 1.1.1.1

国家公共DNS:https://public-dns.info/#countries

将本机dnsmasq作为系统DNS服务器

chattr -i /etc/resolv.conf
echo -e "nameserver 127.0.0.1" > /etc/resolv.conf
chattr +i /etc/resolv.conf

重启dnsmasq(非立即生效)

/etc/init.d/dnsmasq restart

卸载方式

apt-get remove dnsmasq
chattr -i /etc/resolv.conf
chmod 777 /etc/resolv.conf
echo -e "nameserver 8.8.4.4" > /etc/resolv.conf

Alice的解锁DNS

该部分仅登录用户可见

最后修改:2025 年 02 月 23 日
如果觉得我的文章对你有用,请随意赞赏