DNS Resolver Records
I have the following doubt regarding pfsense:
in the DNS Resolver in the Custom Options section, configure the following:
local-zone: "dns.prueba.com." static
local-data: "dns.prueba.com. IN A 18.104.22.168"
And in host overrides add the host dns.rolosa.com with the internal ip 10.11.0.105.
If I do an nslookup from a machine inside the LAN it returns both addresses, and if I do the same query from my computer or cell phone it returns neither.
I have tried to add views or access controls in the Custom Options section.
What can be done so that in the WAN network it returns only the public ip which would be 22.214.171.124? This in order that with the Pfsense, it is used as a DNS server, and for a host it returns one ip of the two configured according to where the request comes from.
Translated with www.DeepL.com/Translator (free version)