Search code examples
loggingdnsforwardingdnsmasqcoredns

get client IP from secondary dns server


I have a case

Client (config to point to DNS_1 server) <-> Internet <-> DNS_1 server <-> DNS_2 server <-> root DNS server

Is there any way or solution so that when client accesses a website, I can get the client IP from DNS_2 server? (I have control over both of these DNS servers.)

Thanks!


Solution

  • If you don't control DNS_1, no. Even with ECS at most you only get the client's subnet