Please follow the below template, it will help us to help you!
Be able to resolve IP address internally for a FQDN to a different address than when pihole is used from an external client.
I have an external static IP address on my DSL connection, but if I try and get to the external IP address from inside the network it won’t work. I have made a “local” DNS entry for this and that resolves well… but there is another address that uses the same pihole via an external client (secured via firewall), but it is ‘outside’ the network.
What I want to be able to do is anyone inside the main network to resolve the address to an inside address, but anyone from ‘outside’ the network should resolve to the external address… is there a way of filtering the DNS response?
I have followed this guide to enable local IP address resolution for the external URL:
Resolving the same address both internally and externally using pihole.