腾讯云COS IPv6支持测试

使用 nslookup 按照给出的双栈域名格式查询 AAAA 记录

nslookup -query=AAAA cos-dualstack.ap-beijing.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-shanghai.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-guangzhou.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-chengdu.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-chongqing.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-hongkong.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-singapore.myqcloud.com
nslookup -query=AAAA cos-dualstack.na-toronto.myqcloud.com
nslookup -query=AAAA cos-dualstack.eu-frankfurt.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-mumbai.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-seoul.myqcloud.com
nslookup -query=AAAA cos-dualstack.na-siliconvalley.myqcloud.com
nslookup -query=AAAA cos-dualstack.na-ashburn.myqcloud.com
nslookup -query=AAAA cos-dualstack.ap-bangkok.myqcloud.com
nslookup -query=AAAA cos-dualstack.eu-moscow.myqcloud.com


nslookup -query=AAAA example.cos-dualstack-website.ap-beijing.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-shanghai.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-guangzhou.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-chengdu.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-chongqing.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-hongkong.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-singapore.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.na-toronto.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.eu-frankfurt.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-mumbai.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-seoul.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.na-siliconvalley.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.na-ashburn.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.ap-bangkok.myqcloud.com
nslookup -query=AAAA example.cos-dualstack-website.eu-moscow.myqcloud.com

查询结果为,现时只有 北京 上海 广州 的COS节点配置有 IPv6。根据工单反馈,香港节点的配置已提交需求单,上线时间不确定。

Name:	cos-dualstack.ap-beijing.myqcloud.com
Address: 2402:4e00:21:1008::9

Name:	cos-dualstack.ap-shanghai.myqcloud.com
Address: 2402:4e00:32:1000::31

Name:	cos-dualstack.ap-guangzhou.myqcloud.com
Address: 2402:4e00:40:2::20
import socket

addresses = [
    "cos-dualstack.ap-beijing.myqcloud.com",
    "cos-dualstack.ap-shanghai.myqcloud.com",
    "cos-dualstack.ap-guangzhou.myqcloud.com",
    "cos-dualstack.ap-chengdu.myqcloud.com",
    "cos-dualstack.ap-chongqing.myqcloud.com",
    "cos-dualstack.ap-hongkong.myqcloud.com",
    "cos-dualstack.ap-singapore.myqcloud.com",
    "cos-dualstack.na-toronto.myqcloud.com",
    "cos-dualstack.eu-frankfurt.myqcloud.com",
    "cos-dualstack.ap-mumbai.myqcloud.com",
    "cos-dualstack.ap-seoul.myqcloud.com",
    "cos-dualstack.na-siliconvalley.myqcloud.com",
    "cos-dualstack.na-ashburn.myqcloud.com",
    "cos-dualstack.ap-bangkok.myqcloud.com",
    "cos-dualstack.eu-moscow.myqcloud.com"
]

for address in addresses:
    try:
        print(f"IPv6 resolution for {address}: {socket.getaddrinfo(address, None, socket.AF_INET6)[0][4][0]}")
    except socket.gaierror as e:
        print(f"Unable to resolve IPv6 address for {address}: {e}")
上海(华东) ap-shanghai cos-dualstack.ap-shanghai.myqcloud.com
广州(华南) ap-guangzhou cos-dualstack.ap-guangzhou.myqcloud.com
成都(西南) ap-chengdu cos-dualstack.ap-chengdu.myqcloud.com
重庆(西南) ap-chongqing cos-dualstack.ap-chongqing.myqcloud.com
香港 ap-hongkong cos-dualstack.ap-hongkong.myqcloud.com
新加坡 ap-singapore cos-dualstack.ap-singapore.myqcloud.com
多伦多 na-toronto cos-dualstack.na-toronto.myqcloud.com
法兰克福 eu-frankfurt cos-dualstack.eu-frankfurt.myqcloud.com
孟买 ap-mumbai cos-dualstack.ap-mumbai.myqcloud.com
首尔 ap-seoul cos-dualstack.ap-seoul.myqcloud.com
硅谷 na-siliconvalley cos-dualstack.na-siliconvalley.myqcloud.com
弗吉尼亚 na-ashburn cos-dualstack.na-ashburn.myqcloud.com
曼谷 ap-bangkok cos-dualstack.ap-bangkok.myqcloud.com
莫斯科 eu-moscow cos-dualstack.eu-moscow.myqcloud.com

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Back to Top