642 字
3 分钟
使用 Alice DNS 解锁服务器访问限制
背景
由于某些国家或者地区的服务器(比如香港地区
)有很多服务无法正常访问,可以通过使用 Alice DNS 解锁。
配置
登录 Alice DNS,在 DNS Service
申请,通过后绑定你的服务器 IP,然后它会提供给你 DNS IP,然后你要将你的服务器 DNS 设置为它提供的 DNS IP。
# 查看当前 DNS
cat /etc/resolv.conf
# 设置 DNS 为 Alice DNS 的 DNS IP
echo -e "nameserver 154.12.177.22\nnameserver 1.1.1.1" | sudo tee /etc/resolv.conf > /dev/null
配置优化
默认情况下,所有网站都走了 Alice DNS 解析,但是我们只需要访问我们服务器未解锁的服务时才走 Alice DNS 解析,其他网站还是走默认的 DNS 解析。所以需要配置 DNS 分流。
# 一键分流脚本
wget https://raw.githubusercontent.com/Jimmyzxk/DNS-Alice-Unlock/refs/heads/main/dns-unlock.sh && bash dns-unlock.sh
# 检测脚本
bash <(curl -L -s media.ispvps.com)
解锁前
ipv4
** 正在测试IPv4解锁情况
--------------------------------
** 您的网络为: Alibaba (8.218.*.*)
============[ Multination ]============
Dazn: Unsupport
TikTok: Failed
Disney+: No
Netflix: 原生解锁 Originals Only (Region: SG)
YouTube Premium: 原生解锁 Yes (Region: HK)
Amazon Prime Video: 原生解锁 Yes (Region: HK)
TVBAnywhere+: No
iQyi Oversea Region: 原生解锁 HK
YouTube CDN: Hong Kong
Netflix Preferred CDN: Hong Kong
Spotify Registration: No
Steam Currency: HKD
ChatGPT: 原生解锁 APP Only (Region: HK)
Google Gemini: No
Bing Region: HK
Wikipedia Editability: No
Instagram Licensed Audio: Failed
---Forum---
Reddit: No
=======================================
ipv6
** 正在测试IPv6解锁情况
--------------------------------
** 您的网络为: Alibaba (240b:4001:278:*:*)
============[ Multination ]============
Dazn: Failed (Network Connection)
TikTok: Failed
Disney+: No
Netflix: 原生解锁 Originals Only (Region: SG)
YouTube Premium: 原生解锁 Yes (Region: HK)
Amazon Prime Video: Unsupported
TVBAnywhere+: Failed (Network Connection)
iQyi Oversea Region: Failed
YouTube CDN: Hong Kong
Netflix Preferred CDN: Hong Kong
Spotify Registration: No
Steam Currency: Failed (Network Connection)
ChatGPT: Failed
Google Gemini: No
Bing Region: HK
Wikipedia Editability: No
Instagram Licensed Audio: Failed
---Forum---
Reddit: No
=======================================
解锁后
ipv4
** 正在测试IPv4解锁情况
--------------------------------
** 您的网络为: Alibaba (8.218.*.*)
============[ Multination ]============
Dazn: No
TikTok: DNS 解锁 Yes (Region: SG)
Disney+: DNS 解锁 Yes (Region: SG)
Netflix: DNS 解锁 Yes (Region: SG)
YouTube Premium: 原生解锁 Yes (Region: HK)
Amazon Prime Video: 原生解锁 Yes (Region: HK)
TVBAnywhere+: No
iQyi Oversea Region: 原生解锁 HK
YouTube CDN: Hong Kong
Netflix Preferred CDN: Associated with [Alice Networks] in [Hong Kong ]
Spotify Registration: No
Steam Currency: HKD
ChatGPT: DNS 解锁 Yes (Region: SG)
Google Gemini: DNS 解锁 Yes (Region: SGP)
Bing Region: HK
Wikipedia Editability: No
Instagram Licensed Audio: Failed
---Forum---
Reddit: No
=======================================
ipv6
** 正在测试IPv6解锁情况
--------------------------------
** 您的网络为: Alibaba (240b:4001:278:*:*)
============[ Multination ]============
Dazn: Failed (Network Connection)
TikTok: DNS 解锁 Yes (Region: SG)
Disney+: No
Netflix: Failed (Network Connection)
YouTube Premium: 原生解锁 Yes (Region: HK)
Amazon Prime Video: Unsupported
TVBAnywhere+: Failed (Network Connection)
iQyi Oversea Region: Failed
YouTube CDN: Hong Kong
Netflix Preferred CDN: Associated with [] in [Hong Kong ]
Spotify Registration: No
Steam Currency: Failed (Network Connection)
ChatGPT: Failed
Google Gemini: No
Bing Region: HK
Wikipedia Editability: No
Instagram Licensed Audio: Failed
---Forum---
Reddit: Failed (Network Connection)
=======================================
使用 Alice DNS 解锁服务器访问限制
https://www.promises.top/posts/server/use-alice-dns-unlock-network/