I'm writing a lua script that decide if to allow DNS resolving according to the source IP of the request.
1) Does the packet cache contains the IP in its key? or just the domain to resolve?
2) Does the pre-resolve hook is skipped for cached data or skipped?
3) If I return NXDOMAIN in the pre-resolve hook for google.com for IP1, does IP2 will get same reply?