设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 1383|回复: 0

腾讯云doh服务器未支持edns_client_subnet字段,导致dns解析错误变成电信ip

[复制链接]
 成长值: 336

签到天数: 4737 天

[LV.Master]伴坛终老

发表于 2022/2/24 04:36 | 显示全部楼层 |阅读模式 |Google Chrome 98.0.4758.102|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
腾讯云doh服务器未支持edns_client_subnet字段,导致dns解析错误变成电信ip

1.12.12.12这个很明显就不支持,错误响应为电信ip
请求
https://1.12.12.12/dns-query?ct=application/dns-json&name=www.baidu.com.&type=A&edns_client_subnet=0.0.0.0

输出
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"www.baidu.com.","type":1}],"Answer":[{"name":"www.baidu.com.","type":5,"TTL":995,"data":"www.a.shifen.com."},{"name":"www.a.shifen.com.","type":1,"TTL":95,"data":"180.101.49.11"},{"name":"www.a.shifen.com.","type":1,"TTL":95,"data":"180.101.49.12"}]}

请求0.0.0.0的情况,应当直接返回用户ip,而不是也响应0.0.0.0,错误响应为电信ip

请求
https://dns.pub/dns-query?ct=application/dns-json&name=www.baidu.com.&type=A&edns_client_subnet=0.0.0.0

输出

{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"www.baidu.com.","type":1}],"Answer":[{"name":"www.baidu.com.","type":5,"TTL":1200,"Expires":"Wed, 23 Feb 2022 20:51:59 UTC","data":"www.a.shifen.com."},{"name":"www.a.shifen.com.","type":1,"TTL":300,"Expires":"Wed, 23 Feb 2022 20:36:59 UTC","data":"180.101.49.11"},{"name":"www.a.shifen.com.","type":1,"TTL":300,"Expires":"Wed, 23 Feb 2022 20:36:59 UTC","data":"180.101.49.12"}],"edns_client_subnet":"0.0.0.0/24"}

阿里那边则完美支持,正确响应了移动运营商的CDN节点ip地址
请求
https://223.5.5.5/resolve?ct=application/dns-json&name=www.baidu.com.&type=A&edns_client_subnet=0.0.0.0

输出
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":{"name":"www.baidu.com.","type":1},"Answer":[{"name":"www.baidu.com.","TTL":133,"type":5,"data":"www.a.shifen.com."},{"name":"www.a.shifen.com.","TTL":133,"type":1,"data":"183.232.231.174"},{"name":"www.a.shifen.com.","TTL":133,"type":1,"data":"183.232.231.172"}],"edns_client_subnet":"117.181.66.2/32"}
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/12/23 23:53 , Processed in 0.248422 second(s), 21 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表