dnsdist fatal Lua error Caught exception: Error creating a xsk socket of if_name #15713
-
Hi, I have this dnsdist.conf using xsk
it works when I start dnsdist from command line like but it failed when I use dnsdist init startup script, it appears Lua config parsing error
dnsdist log:
the dnsdist init scropt below
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not a Lua parsing error. The creation of an
addCapabilitiesToRetain("CAP_SYS_ADMIN")
addCapabilitiesToRetain("CAP_NET_ADMIN")
addCapabilitiesToRetain("CAP_NET_RAW")
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") None of these options are very satisfying, but at the very least it would tell us if we are on the right track. |
Beta Was this translation helpful? Give feedback.
This is not a Lua parsing error. The creation of an
AF_XDP
socket object viax…