Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Stephane Bortzmeyer
On Mon, Sep 16, 2019 at 04:24:33PM +0200, Daniel Stirnimann wrote a message of 30 lines which said: > If your request went over IPv6 then this is expected because you added > the supportpagemap only on your IPv4 listener. Make sure you also add: It works, thanks. > Note also, the newDOHRespo

Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Daniel Stirnimann
On 16.09.19 16:17, Stephane Bortzmeyer wrote: > On Mon, Sep 16, 2019 at 03:02:28PM +0200, > Daniel Stirnimann wrote > a message of 13 lines which said: > >> The feature is only available in 1.4.0-rc2. Is this version string correct? > > With 1.4.0-rc2, the configuration is accepted but see

Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Stephane Bortzmeyer
On Mon, Sep 16, 2019 at 03:02:28PM +0200, Daniel Stirnimann wrote a message of 13 lines which said: > The feature is only available in 1.4.0-rc2. Is this version string correct? With 1.4.0-rc2, the configuration is accepted but seems ignored. I have: addDOHLocal("0.0.0.0:443", "/etc/dnsdist/

Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Daniel Stirnimann
also, you need to make sure that "addDOHLocal" urls lists both "/" and "dns-query" strings e.g. addDOHLocal('0.0.0.0', 'crt.pem', 'crt.key', {'/', '/dns-query'} ) addDOHLocal('::0', 'crt.pem', 'crt.key', {'/', '/dns-query'} ) dohFE1 = getDOHFrontend(0) dohFE1:setResponsesMap({newDOHResponseMapEnt

Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Daniel Stirnimann
On 16.09.19 14:48, Stephane Bortzmeyer wrote: > It seems cool, but it fails for me: > > Fatal Lua error: [string "chunk"]:9: attempt to call global > 'newDOHResponseMapEntry' (a nil value) > > % dnsdist --version > dnsdist 1.4.0-beta1 (Lua 5.1.4 [LuaJIT 2.0.5]) > Enabled features: dns-over-tls(

Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Stephane Bortzmeyer
On Mon, Sep 16, 2019 at 11:13:03AM +0200, Remi Gacogne wrote a message of 94 lines which said: > supportpagemap = { newDOHResponseMapEntry("^/$", 302, > "https://support.mydoman.com";) } It seems cool, but it fails for me: Fatal Lua error: [string "chunk"]:9: attempt to call global 'newDOHR

Re: [dnsdist] dnsdist and Let's Encrypt (ACME)

2019-09-16 Thread Stephane Bortzmeyer
On Sun, Sep 15, 2019 at 07:14:10PM +0200, ab...@t-ipnet.net wrote a message of 12 lines which said: > There is no need to restart dnsdist. > > /usr/sbin/dnsdist -e 'reloadAllCertificates()' If you have configured the console. Otherwise: The currently configured console key is not valid, ple

Re: [dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Remi Gacogne
Hi Andrew, On 9/16/19 11:03 AM, wrote: > 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 lookup

[dnsdist] DoH: 302 redirecting / to a help page

2019-09-16 Thread Andrew
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://d