Use Pi-Hole as resolver/Cache DNS Server

#1

Hello

I’m using since years my three bind9 Server, which act als cache/resolver DNS.
So, they don’t have any Servers in the forwarders-Section in the bind config.
But they do have some zones-Entries for my private networks.

Would that be possible to implement?

thanks
rog_NB

#2

Check the man dnsmasq page from which pihole-FTL is forked:

http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Its got directives like “host-record=” to add A/AAAA records, “mx-host=” for mail exchange records, “auth-zone=” and many more.
Put them in a newly created file like so:

sudo nano /etc/dnsmasq.d/99-my-settings.conf

And reload to apply:

sudo service pihole-FTL reload

EDIT: make sure directives aren’t conflicting with existing ones:

sudo grep -v '^#\|^$' -R /etc/dnsmasq.*