Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EDNS Client Subnet option #521

Open
PenelopeFudd opened this issue Feb 18, 2025 · 0 comments
Open

Add EDNS Client Subnet option #521

PenelopeFudd opened this issue Feb 18, 2025 · 0 comments

Comments

@PenelopeFudd
Copy link

PenelopeFudd commented Feb 18, 2025

Describe the feature requested
We've set up a DNS server that uses the EDNS0 Client Subnet (ECS) option (RFC 7871) to return the ip address of the closest endpoint. Now we'd like to test this to see if it works quickly, correctly and efficiently.

Examples of using ECS with dig:

$ dig +short @8.8.8.8 TXT o-o.myaddr.l.google.com +subnet=1.2.3.4/24

"edns0-client-subnet 1.2.3.0/24"
"7.15.87.9"

$ dig +short @8.8.8.8 TXT o-o.myaddr.l.google.com +subnet=2001:7f1::/48

"edns0-client-subnet 2001:7f1::/48"
"7.15.86.9"

Additional context
One thing we'd like to check is to see if our server is modifying the ECS option, such that the subnet in the request is different than the subnet in the response.

Solution
Allow the input text to have @x.x.x.x/y appended to the FQDN input names, which would then be parsed as the subnet to use. Or, use CSV or TSV format, in case someone starts using @ in FQDNs.

@zakird zakird changed the title [Feature Request] EDNS Client Subnet option support? Add EDNS Client Subnet option Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants