【PowerDns】dnsdist

傳遞來源ip
https://www.dnsdist.org/advanced/passing-source-address.html

addLocal("0.0.0.0:53")

-- Recursor 作為唯一後端
-- useClientSubnet=true 傳送ECS 來源端資訊 
newServer({ name="rec", address="127.0.0.1:5301", pool="recursor", useClientSubnet=true })

--設定ipv4顯示的位數 
setECSSourcePrefixV4(32)
setECSSourcePrefixV6(128)

-- 不加任何分流規則,全部都送 recursor
addAction(AllRule(), PoolAction("recursor"))

修訂版本 #2
由 treeman 建立於 7 Q@ 2025 16:01:24
由 treeman 更新於 7 Q@ 2025 16:04:14