Hi everyone,

I'm using dnsdist 1.4.0-rc2 and will be running it as a DoH proxy for my
users.

I have the url as /dns-query in my addDOHLocal config, and in the case that
users put the domain name in to their browser address bar I'm wanting to
redirect request to / to my help page.

ie:
  https://doh.mydomain.com/dns-query - for DoH lookups
  https://doh.mydomain.com/ - redirect to another URL

I'm thinking I need to use newDOHResponseMapEntry for  this, but I'm unsure
how to add this to my config.

This is what I'm trying (and failing with):

 supportpage = newDOHResponseMapEntry("/", 302, "https://support.mydoman.com
")
 setResponsesMap(supportpage)

Any help appreciated.

Thanks
_______________________________________________
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist

Reply via email to