原创 如何为域名添加 IPv6 解析记录

IPv6 网站准备好了后,接下来可以为网站域名添加 IPv6 解析记录(AAAA)。

  • A 记录:解析为 IPv4 地址
  • AAAA 记录:解析为 IPv6 地址

IPv6 解析记录(AAAA)

检查 IPv6 域名解析是否成功

有 2 种方式解析 IPv6 地址:dig在线解析

dig -t AAAA ipw.cn

$ dig -t AAAA ipw.cn

; <<>> DiG 9.10.6 <<>> -t AAAA ipw.cn
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16159
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 15

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ipw.cn.				IN	AAAA

;; ANSWER SECTION:
ipw.cn.			600	IN	AAAA	2402:4e00:40:40::2:331

;; AUTHORITY SECTION:
ipw.cn.			74665	IN	NS	ns4.dnsv2.com.
ipw.cn.			74665	IN	NS	ns3.dnsv2.com.

;; ADDITIONAL SECTION:
ns3.dnsv2.com.		89916	IN	AAAA	2402:4e00:1430:1102:0:9136:2b2f:bf6b
ns4.dnsv2.com.		163624	IN	AAAA	2402:4e00:1020:1264:0:9136:29bb:2f5e
ns3.dnsv2.com.		89688	IN	A	223.166.151.17
ns3.dnsv2.com.		89688	IN	A	61.129.8.141
ns3.dnsv2.com.		89688	IN	A	101.226.220.13
ns3.dnsv2.com.		89688	IN	A	129.211.176.248
ns3.dnsv2.com.		89688	IN	A	162.14.24.245
ns3.dnsv2.com.		89688	IN	A	183.192.164.118
ns4.dnsv2.com.		157105	IN	A	223.166.151.18
ns4.dnsv2.com.		157105	IN	A	58.247.212.37
ns4.dnsv2.com.		157105	IN	A	59.36.120.143
ns4.dnsv2.com.		157105	IN	A	61.151.180.45
ns4.dnsv2.com.		157105	IN	A	162.14.25.245
ns4.dnsv2.com.		157105	IN	A	183.192.164.118

;; Query time: 18 msec
;; SERVER: 240e:1f:1::1#53(240e:1f:1::1)
;; WHEN: Sat Dec 18 20:33:58 CST 2021
;; MSG SIZE  rcvd: 356
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

在线多地域 DNS 解析

通过 IPv6 在线域名解析工具新窗口打开 对其解析验证。

访客IP: ,您的网络 访问优先

本站运行于 腾讯云 腾讯云