Is there any method so that i can get the client public IP in dns query

416 Views Asked by At

I have configured the PowerDNS server with a recursor server, I want to put some domain filtering process on the basis of client IP.

hence I want

Anytime a client making a request, so its dns-query must be with client's public IP, using that I can put a filter role for the client.

as with all other services openDNS, freeDNS are all working

Thanks in Advance.

I have used the lua script to get the client IP using the function dq.remoteaddr:toString() but using this I am getting only my dnsdist (load balancer) server IP address, not client IP address because I have configured DOH and DOT in the dnsdist server, hence all the queries are coming through dnsdist server.

0

There are 0 best solutions below