Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function preresolve(dq)
- -- In preresolve I would like to set some flag that postresolve will see.
- local data = {}
- data['dont_modify'] = "1"
- dq.data = data
- return false
- end
- function postresolve(dq)
- -- This block never ends up happening.
- if dq.data.dont_modify == "1" then
- return false
- end
- dq.variable = true
- dq.rcode = pdns.NOERROR
- dq:addAnswer(pdns.CNAME, 'test.com', 60)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement