配置 dnsdist

配置 dnsdist


尝试在 127.0.0.1:5300安装 PowerDNS 4.1 Authoritative
,在 127.0.0.1:5301 安装 Recursor

DNS 配置如同文档中所述
但出现错误:

# dnsdist -C dnsdist.conf 
Fatal Lua error: Unknown Lua error

输入:1:尝试调用一个零值(全局“setLocal”)

dnsdist.conf

setLocal('PUBLIC_IPv4')
addLocal('PUBLIC_IPv6')
setACL('PUBLIC_IPv4/24')

newServer({'127.0.0.1:5300', pool='auth'})
newServer({'127.0.0.1:5301', pool='recursor'})

recursive_ips = newNMG()
recursive_ips:addMask('127.0.0.1/8')
recursive_ips:addMask('PUBLIC_IPv4/24')

addAction(NetmaskGroupRule(recursive_ips), PoolAction('recursor'))
addAction(AllRule(), PoolAction('auth'))

怎么了?

相关内容