semigodking / cdns

CureDNS
Apache License 2.0
77 stars 21 forks source link

EDNS Client Subnet 支持 #20

Open zhaibin18 opened 2 years ago

zhaibin18 commented 2 years ago

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

semigodking commented 2 years ago

没大明白,什么意思?

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 .

zhaibin18 commented 2 years ago

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

semigodking commented 2 years ago

明白了,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 commented 2 years ago

我搜了搜,发现居然找不到现成的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 .

zhaibin18 commented 2 years ago

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