mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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>
16 lines
804 B
Plaintext
16 lines
804 B
Plaintext
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")
|
|
|
|
---- newServer({address="8.8.8.8", healthCheckMode='lazy', checkInterval=1, lazyHealthCheckFailedInterval=30, rise=2, maxCheckFailures=3, lazyHealthCheckThreshold=30, lazyHealthCheckSampleSize=100, lazyHealthCheckMinSampleCount=10, lazyHealthCheckMode='TimeoutOnly'})
|
|
|
|
---- newServer({address="1.1.1.1", healthCheckMode='lazy', checkInterval=1, lazyHealthCheckFailedInterval=30, rise=2, maxCheckFailures=3, lazyHealthCheckThreshold=30, lazyHealthCheckSampleSize=100, lazyHealthCheckMinSampleCount=10, lazyHealthCheckMode='TimeoutOnly'})
|
|
|
|
|