m13253 / dns-over-https

High performance DNS over HTTPS client & server
https://developers.google.com/speed/public-dns/docs/dns-over-https
MIT License
1.94k stars 221 forks source link

How disable edns in doh-server #154

Open shirakun opened 6 months ago

shirakun commented 6 months ago

Hi

I created a doh-server But I want to use the server ip instead of the client ip when requesting the upstream dns But I noticed that the doh-server seems to pass the client ip to the upstream dns. How do I disable edns for doh-server?

m13253 commented 6 months ago

If you have an Nginx frontend, simply removing X-Forwarded-For and X-Real-IP would be enough.