快速让你VPS获得DNS解锁+分流

技术交流 无标签
0 45
xiaoxiaofei
xiaoxiaofei 普通会员 2024-05-02 09:57:33
用户等级:2级

下面任一方法拿到解锁dns

1:可以解锁vps自己搭dnsmasq_sniproxy_install
2:也可以网上找 https://fofa.info/result?qbase64=Ym9keT0iQmFja2VuZCBub3QgYXZhaWxhYmxlIg%3D%3D

复制IP地址,解锁的ssh输入

nslookup netflix.com IP地址

nslookup netflix.com 38.59.254.65

有返回结果=IP可解锁

需要解锁的vps安装dnsmasq分流

apt-get -y install dnsmasq

配置分流

/etc/dnsmasq.conf输入这4行

server=/netflix.com/38.59.254.65
server=/disneyplus.com/38.59.254.65
server=/openai.com/38.59.254.65
resolv-file=/etc/resolv.dnsmasq.conf

编辑/etc/resolv.dnsmasq.conf

nameserver 8.8.4.4
nameserver 1.1.1.1

上面原理=遇到标注域名走解锁DNS(可继续添加),其余走8.8.4.4默认DNS

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

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

重启dnsmasq(非即时,一般30秒生效)

/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

30s后测试解锁-打开绝命毒师页面,
https://www.netflix.com/title/70143836
看到封面图说明成功;若雪地404说明未成功
2024-05-01 10_21_54-Watch Breaking Bad _ Netflix - 个人 - Microsoft​ Edge.png

也可以vps一键测试解锁

bash <(curl -L -s media.ispvps.com)


楼主签名:
回帖
回复列表