cdns icon indicating copy to clipboard operation
cdns copied to clipboard

EDNS Client Subnet 支持

Open zhaibin18 opened this issue 3 years ago • 5 comments

能否在发送DNS请求时可以自己定义EDNS Client Subnet的地址,多谢!

zhaibin18 avatar Dec 10 '21 14:12 zhaibin18

没大明白,什么意思?

zhaibin18 @.***> 于 2021年12月10日周五 22:49写道:

测试了一下8.8.8.8支持EDNS,能否在发送DNS请求的是可以可以自己定义EDNS的地址。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/semigodking/cdns/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD3VTFRRBSISA6CK43LUQIHQHANCNFSM5JZJ7G7Q .

semigodking avatar Dec 12 '21 11:12 semigodking

就是在发送DNS请求的时候可以带着Client subnet,就是类似图片里的。 1

zhaibin18 avatar Dec 12 '21 13:12 zhaibin18

明白了,ECS option的确可以加强一下。

zhaibin18 @.***> 于 2021年12月12日周日 21:05写道:

就是在发送DNS请求的时候可以带着Client subnet,就是类似图片里的。 [image: 1] https://user-images.githubusercontent.com/6645145/145713483-8e083a3e-d9f9-4bf7-97ad-e4f3da7cb258.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/semigodking/cdns/issues/20#issuecomment-991895067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD3NNJAJMKRKO42NN43UQSMZTANCNFSM5JZJ7G7Q .

semigodking avatar Dec 13 '21 06:12 semigodking

我搜了搜,发现居然找不到现成的c语言解析cidr的代码。又不想引入libcidr,增加依赖,还得想想办法。

Semigod King @.***> 于 2021年12月13日周一 14:21写道:

明白了,ECS option的确可以加强一下。

zhaibin18 @.***> 于 2021年12月12日周日 21:05写道:

就是在发送DNS请求的时候可以带着Client subnet,就是类似图片里的。 [image: 1] https://user-images.githubusercontent.com/6645145/145713483-8e083a3e-d9f9-4bf7-97ad-e4f3da7cb258.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/semigodking/cdns/issues/20#issuecomment-991895067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD3NNJAJMKRKO42NN43UQSMZTANCNFSM5JZJ7G7Q .

semigodking avatar Dec 25 '21 00:12 semigodking

这几个都实现了ECS,是不是可以参考。 https://github.com/pymumu/smartdns https://github.com/GangZhuo/CleanDNS https://github.com/rampageX/DEF

zhaibin18 avatar Dec 28 '21 01:12 zhaibin18