I would like to setup a recursive DNS server with multiple IPs all on the same PowerDNS server. Let's say:
8.8.8.1
8.8.8.2
8.8.8.3
8.8.8.4
I was wondering how I could send different responses based on the IP used by the client.
For example, if the client is sendindg his requests to 8.8.8.1 and 8.8.8.2 the site www.example.com would resolve to 1.1.1.1 otherwise, if the client is using 8.8.8.3 and 8.8.8.4 as his DNS server, the response would be 2.2.2.2.
Would this be possible? Maybe with LUA scripting?
Thanks!