Skip to content

How can I use the view(pairs) method in the Authoritative server to allocate based on the actual source IP of the request, instead of using the IP of the recursor server? #13718

Answered by mnordhoff
jerryqzhang asked this question in Q&A
Discussion options

You must be logged in to vote

If you enable the edns-subnet-processing setting, the view() function will make use of the EDNS Client Subnet extension if recursive resolvers send it (or use the resolver's IP if they do not).

If you're running a public service that random people across the Internet query, only some queries will include the extension: some resolvers always include it, some only include it if you make specific arrangements with the resolver operator, and many never include it at all.

If you run all of the resolvers at issue, you can enable it (such as with PowerDNS Recursor).

Edit: If you also use dnsdist, you need to configure it so that the ECS is cached and forwarded as you require.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jerryqzhang
Comment options

Answer selected by jerryqzhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #13717 on January 16, 2024 07:19.