
我在一些使用康卡斯特 wifi 的咖啡店遇到了問題。這些商店僅允許 ipv6,導致網站無法載入並出現錯誤 ERR_ADDRESS_UNREACHABLE。有些網站可以運作(google.com、gmail.com 等),而其他網站則無法運作(BBC.com、reddit.com 等)
讓我們關注 BBC.com
我可以獲得IP位址
C:\Users\uname>nslookup bbc.com
Server: cdns01.comcast.net
Address: 2001:558:feed::1
Non-authoritative answer:
Name: bbc.com
Addresses: 2a04:4e42:400::81
2a04:4e42:600::81
2a04:4e42::81
2a04:4e42:200::81
但是使用curl return 對於失敗的網站不起作用
C:\Users\uname>curl -v -6 https://www.bbc.com
* Could not resolve host: www.bbc.com
* Closing connection 0
curl: (6) Could not resolve host: www.bbc.com
C:\Users\uname>curl -6 https://www.google.com
<!doctype html>
.
.
.</html>
C:\Users\uname>
直接連接到IP即可
C:\Users\uname>curl -v -H "Host: www.bbc.com" -k -g -6 "https://[2a04:4e42:600::81]"
* Trying [2a04:4e42:600::81]:443...
* Connected to 2a04:4e42:600::81 (2a04:4e42:600::81) port 443 (#0)
...
看起來像是 DNS 問題,但我嘗試手動將 DNS 設定為 google,刷新 DNS 快取,但遇到了相同的問題。無論選擇哪個 DNS 供應商,ISP (Comcast) 或 CDN (Fastly) 是否都會攔截 DNS 查詢?這似乎令人擔憂。