dnsdist config
setLocal("0.0.0.0:53")
setACL("10.0.0.0/8")
newServer({address="114.114.114.114",order=3,pool="recursor",checkType="A", checkType=DNSClass.IN, checkName="a.root-servers.net.", mustResolve=true,maxCheckFailures=10})
newServer({address="223.5.5.5",order=3,pool="recursor",checkType="A", checkType=DNSClass.IN, checkName="a.root-servers.net.", mustResolve=true,maxCheckFailures=10})
newServer({address="119.29.29.29",order=3,weight=2,pool="rajax",checkType="A", checkType=DNSClass.IN, checkName="a.root-servers.net.", mustResolve=true,maxCheckFailures=10})
controlSocket('0.0.0.0:5199')
newServer({address="10.8.2.51",order=1,pool="rajax.me",checkType="A", checkType=DNSClass.IN, checkName="a.root-servers.net.", mustResolve=true, maxCheckFailures=10})
newServer({address="10.8.6.51",order=1,pool="rajax.me",checkType="A", checkType=DNSClass.IN, checkName="a.root-servers.net.", mustResolve=true,maxCheckFailures=10})
newServer({address="114.114.114.114",order=1,pool="rajax.me",checkType="A", checkType=DNSClass.IN, checkName="www.baidu.com.", mustResolve=true,maxCheckFailures=10})
newServer({address="10.8.2.51",order=1,pool="rajax-inc.com",checkType="A", checkType=DNSClass.IN, checkName="www.baidu.com.", mustResolve=true,maxCheckFailures=10})
newServer({address="114.114.114.114",order=2,pool="rajax-inc.com",checkType="A", checkType=DNSClass.IN, checkName="www.baidu.com.", mustResolve=true,maxCheckFailures=10})
recursive_ips = newNMG()
recursive_ips:addMask('10.0.0.0/8')
addAction("rajax.me",PoolAction("rajax.me"))
addAction("rajax-inc.com",PoolAction("rajax-inc.com"))
webserver("0.0.0.0:8083","admin","admin")
LogAction("/var/log/dnsdist.log")
addAction(NetmaskGroupRule(recursive_ips),PoolAction("recursor"))