[dnsdist] Is the sub-path of a DoH query passed to the backend?
suresh.gunasekaran at lookout.com
Wed May 19 22:05:08 UTC 2021
Thanks for your response. I have couple more questions:
1. Is there a way to run a custom script either before a DoH query is sent
to the backend server or after a response was received from the backend?
And can this script have access to the sub-path?
2. If the incoming request had a custom value in the Forwarded (or
X-Forwarded-For) header will that information be sent to the backend
server? The documentation talks about support for X-Proxied-For header via
the addXPF parameter. Is that same as X-Forwarded-For?
On Mon, May 17, 2021 at 3:14 AM Remi Gacogne via dnsdist <
dnsdist at mailman.powerdns.com> wrote:
> On 5/12/21 7:51 PM, Suresh Gunasekaran via dnsdist wrote:
> > I see that in dnsdist 1.6.0 sub-paths of a DoH query can be accepted by
> > setting the exactPathMatching option to false in addDOHLocal().
> > https://dnsdist.org/reference/config.html#addDOHLocal
> > <https://dnsdist.org/reference/config.html#addDOHLocal>
> > I am trying to find out whether I will be able to add custom rules in
> > the backend based on the sub-path. Is that possible? Will the sub-path
> > be passed to the backend?
> I'm afraid the sub-path is not passed to the backend, no. It would
> technically be possible to pass it using the proxy protocol custom
> values, but we don't support that at the moment.
> Best regards,
> Remi Gacogne
> PowerDNS.COM BV - https://www.powerdns.com/
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dnsdist