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({newDOHResponseMapEntry('^/$', 302,
'https://www.example.com/')})
dohFE2 = getDOHFrontend(1)
dohFE2:setResponsesMap({newDOHResponseMapEntry('^/$', 302,
'https://www.example.com/')})

Daniel


On 16.09.19 15:02, Daniel Stirnimann wrote:
> 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(gnutls openssl) dns-over-https(DOH) ebpf 
>> fstrm ipcipher libsodium protobuf recvmmsg/sendmmsg systemd
> 
> The feature is only available in 1.4.0-rc2. Is this version string correct?
> 
> Daniel
> _______________________________________________
> dnsdist mailing list
> dnsdist@mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
> 

-- 
SWITCH
Daniel Stirnimann, SWITCH-CERT
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 15, direct +41 44 268 16 24
daniel.stirnim...@switch.ch, www.switch.ch
_______________________________________________
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist

Reply via email to