<div dir="ltr">Thanks for your response. I have couple more questions:<div><br></div><div>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?</div><div><br></div><div>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?</div><div><br></div><div>Thanks</div><div>Suresh</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 17, 2021 at 3:14 AM Remi Gacogne via dnsdist <<a href="mailto:dnsdist@mailman.powerdns.com">dnsdist@mailman.powerdns.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On 5/12/21 7:51 PM, Suresh Gunasekaran via dnsdist wrote:<br>
> I see that in dnsdist 1.6.0 sub-paths of a DoH query can be accepted by <br>
> setting the exactPathMatching option to false in addDOHLocal().<br>
> <a href="https://dnsdist.org/reference/config.html#addDOHLocal" rel="noreferrer" target="_blank">https://dnsdist.org/reference/config.html#addDOHLocal</a> <br>
> <<a href="https://dnsdist.org/reference/config.html#addDOHLocal" rel="noreferrer" target="_blank">https://dnsdist.org/reference/config.html#addDOHLocal</a>><br>
> <br>
> I am trying to find out whether I will be able to add custom rules in <br>
> the backend based on the sub-path. Is that possible? Will the sub-path <br>
> be passed to the backend?<br>
<br>
I'm afraid the sub-path is not passed to the backend, no. It would <br>
technically be possible to pass it using the proxy protocol custom <br>
values, but we don't support that at the moment.<br>
<br>
Best regards,<br>
-- <br>
Remi Gacogne<br>
PowerDNS.COM BV - <a href="https://www.powerdns.com/" rel="noreferrer" target="_blank">https://www.powerdns.com/</a><br>
_______________________________________________<br>
dnsdist mailing list<br>
<a href="mailto:dnsdist@mailman.powerdns.com" target="_blank">dnsdist@mailman.powerdns.com</a><br>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" rel="noreferrer" target="_blank">https://mailman.powerdns.com/mailman/listinfo/dnsdist</a><br>
</blockquote></div>