写两个示例吧:
- 1 xxx.xx.cdn.dnsv1.com alpn="h3,h3-29,h2" port=443
复制代码
1:区分0和其他,有两个模式,具体没搞懂,一般都是1,优先级为 0 时,表示别名模式(AliasMode)优先级不为 0 时,表示服务模式(ServiceMode)
xxx.xx.cdn.dnsv1.com:所指向的目标域名,有点CNAME的味道了,没有就写点,但是写点后一定要写ipv4hint或者(和)ipv6hint。
alpn:服务器支持的协议
port:服务端口
- 1 . alpn="h3,h3-29,h2" ipv4hint=104.26.14.53,104.26.15.53,172.67.70.22 ipv6hint=2606:4700:20::681a:e35,2606:4700:20::681a:f35,2606:4700:20::ac43:4616
复制代码
这是另一个示例:
ipv4hint:直接告诉客户端IPv4地址,客户端不再请求目标域名获取IPv4地址
ipv6hint:直接告诉客户端IPv6地址,客户端不再请求目标域名获取IPv6地址
|