dnsdist: correct xsk sample config

when use /etc/rc.d/init.d/dnsdist to start dnsdist with the sample
xsk config, it results in startup error [0].

correct the xsk sample config.

[0]: https://github.com/PowerDNS/pdns/discussions/15713

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2025-06-23 21:55:35 -07:00
parent f2b2d9c076
commit 59e389cbfe

View File

@@ -1,6 +1,9 @@
xsk = newXsk({ifName="green0", NIC_queue_id=0, frameNums=65536, xskMapPath="/sys/fs/bpf/dnsdist/xsk_map"})
addLocal("0.0.0.0:53", {xskSocket=xsk})
if not inConfigCheck() then
xsk = newXsk({ifName='green0', NIC_queue_id=0, frameNums=65536, xskMapPath='/sys/fs/bpf/dnsdist/xsk_map'})
addLocal("0.0.0.0:53", {xskSocket=xsk})
else
addLocal("0.0.0.0:53")
end
newServer("8.8.8.8:53")
newServer("1.1.1.1:53")