Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. whitelist=newDS()
  2. whitelist:add(dofile("/etc/pdns-recursor/lua/compassws/allowed.lua"))
  3.  
  4. function preresolve(dq)
  5. if not whitelist:check(dq.qname) then
  6. dq.rcode = pdns.NXDOMAIN
  7. return true
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement