AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.44k stars 247 forks source link

Allow pass-through of ECS from client to upstream server #166

Open timkgh opened 3 years ago

timkgh commented 3 years ago

In some cases clients send DNS requests with ECS (e.g. dnsmasq behind dnsproxy can send ECS via --add-subnet). But it does not seem to be passed upstream by dnsproxy, or at least I can't get it to work.

Can you please add a config option --edns-pass-to-upstream? The logic should probably be: if client supplies it, pass it through. If the client doesn't supply it and --edns or --ends-addr are enabled, use those.

It can be tested like this: dig o-o.myaddr.google.com txt +subnet='1.2.3.0/24' @8.8.8.8 (replace 8.8.8.8 with the address of dnsproxy)

gspannu commented 2 years ago

Has this been implemented? Or expected version in which this may be implemented...

ha-ku commented 2 years ago

Any update?

ameshkov commented 2 years ago

No updates yet, we didn't have time to implement dnsproxy feature requests yet.