I've setup Pihole on another device. And I have NATted the DNS for all my local networks using the technique shown in this video (https://www.youtube.com/watch?v=EdzDCkFaskc). This is all working great so far.
I have some local domains for my home network that I cannot use anymore as a result of this change. These are just local domains and hostnames and have nothing to do with any domain registry. In fact, they only exist within the Mikrotik static DNS table. This behavior is expected as Pihole does not recognize them and its not my DHCP Server. My Mikrotik router is the DHCP server.
How do I configure either:
- Mikrotik router to not DNS NAT local domain/host names (there are a few)? Or
- Pihole to forward resolution of these domains to Mikrotik router instead of upstream DNS?
ZeeKay
UPDATE: I've posted my question in another forum for help. Here's the text of my question, which could be clearer that the original one I posted
The issue I am facing:
I cannot lookup hostnames on my local network when I use Pi-Hole as my DNS. I can reach them via their IPs, but hostnames with local domain names (like .home, .lab etc) does not work anymore.
Details about my system:
I am running Pi-Hole on RPi. Versions are:
Pi-hole [v5.14.2]
FTL [v5.20]
Web Interface[v5.18]
I have a router that supports multiple VLANs and my network is segmented into 4 VLANs. Pi-Hole lives within one VLAN and is accessible to other VLANs via proper routing rules in place. Pi-Hole is also setup with DoH with Cloudflare and DNSSEC.
Router is the DHCP server and I'd like to keep it that way as it allocates IPs for various subnets across multiple VLANs. Router also maintains its own DNS list for local network.
What I have changed since installing Pi-hole:
Before introducing Pi-Hole, the router was the DNS. It resolved local network domains and hostnames via its own local DNS list that it maintains (its dynamic and keeps track of which hosts are connected at any given time). It also forwarded DNS requests to external DNS that I configured.
Now that Pi-Hole is the default DNS across all VLANs, I can see the traffic, the dashboard, who is doing what. But I cannot use local hostnames with local domain names anymore. I'd like to be able to use my local network names again.
How can I tell Pi-Hole to forward DNS requests for specific domain names to my router, instead of Cloudflare?
Thanks in advance!