[Pdns-users] nested LUA records
Fatih Kasar
networkprofession at gmail.com
Wed Sep 23 16:25:59 UTC 2020
Hi all,
I am trying to do nested LUA record
What I am trying to do is
1) User from AU first first check authoritative dns server (1.1.1.1) if
it's up resolve from (1.1.1.1)
2) if 1.1.1.1 not up try to resolve 2.2.2.2
3) if 2.2.2.2 not up try try 3.3.3.3
I tried following syntax but I am getting error messages my syntax is not
acceptable by pdns-util. Is there anyone can help me right syntax
www.example.com 30 IN LUA A ( ";if(country('AU')) then return
ifportup(53, {'1.1.1.1'})"
"else return ifportup(53,
{'2.2.2.2'})"
"else return ifportup(53,
{'3.3.3.3'})" end" )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200924/5b6fa77c/attachment.htm>
More information about the Pdns-users
mailing list