[dnsdist] Spoof SVCB with SpoofSVCAction

Daniel Stirnimann daniel.stirnimann at switch.ch
Mon Mar 7 14:03:10 UTC 2022


short update from myself.

there seems to be something wrong with the host system where I was
testing this. I still haven't figured out what but I got it running on
another RHEL7 or RHEL8 host.

Daniel

On 02.03.22 14:34, Daniel Stirnimann via dnsdist wrote:
> 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
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist


More information about the dnsdist mailing list