i am running a pihole with coredns for tls termination so i can use android 9’s private dns feature with it. Everything works well, except that in the pihole stats, every request is coming from localhost.localdomain. This is caused by the fact, that coredns accepts all requests first and just forwards them to pihole-FTL.
I really want to see the real IP adresses in the pi-hole stats. Where does the pihole load the IPs from? Is it the log file*? Is it the ftl.db? Is there some sort of hook i can use to inject the correct ip-adresses? Coredns has a wonderful query-log feature and it would be a shame if i couldn’t use this to integrate into the pihole stats
*Which parts of the log file are really used for statistics? Is it only the query or also the response?