[dnsdist] Spoof SVCB with SpoofSVCAction
Daniel Stirnimann
daniel.stirnimann at switch.ch
Wed Mar 2 13:34:47 UTC 2022
Hi all,
I run dnsdist 1.7.0 with RPMs provided by PowerDNS.
I'm trying to use SVCRecordParameters with SpoofSVCAction as described
in the documentation at
https://dnsdist.org/reference/svc.html#newSVCRecordParameters
However, the example in the documentation is not working for me.
dnsdist -c
> local svc = {newSVCRecordParameters(1, "dot.powerdns.com.", {
alpn={"dot"}, port=853, ipv4hint={"192.0.2.1"}, ipv6hint={"2001:db8::1"} })}
> addAction(AndRule{QTypeRule(64), QNameRule('_dns.resolver.arpa.')},
SpoofSVCAction(svc))
Error: [string "return addAction(AndRule{QTypeRule(64), QName..."]:1:
Unable to convert parameter from userdata to
St6vectorISt4pairIi19SVCRecordParametersESaIS2_EE
stack traceback:
[C]: in function 'SpoofSVCAction'
[string "return addAction(AndRule{QTypeRule(64), QName..."]:1: in main
chunk>
Any hints why this fails?
Thank you,
Daniel
More information about the dnsdist
mailing list