How to forward specific domain to specific upstream server

How can I set up Pihole to forward specific domains to a particular upstream DNS server? For example, I want all .mydomain searches to go to a DNS server on the other side of a VPN tunnel, but all other searches to use the default configured upstream DNS.

Is this possible to setup in dnsmasq?


1 Like

Nevermind, I found the setting in dnsmasq.

I Added the following to /etc/dnsmasq.d/02-mydomain.conf:

1 Like

I had the same doubt, thanks.

Could you help me with what you did?
I have some addresses I would like to redirect to other places.