How does Pi-Hole choose which custom DNS server to use?

Hi, I just have a question out of curiosity. I have been using PiHole for a long time now and for reasons too long to get into here, I installed unbound on another machine in my LAN and had my PiHole installation point to that. That has been working very well. I decided to install Unbound on the same machine that has PiHole to compare performance and set the localhost DNS as the other IPv4 DNS address in the PiHole DNS settings. All queries are now going to the localhost. Why is PiHole preferring this? Is it based on latency?

See Pi-hole's docs on its DNS resolver, specifically the section on FTLDNS's modifications of dnsmasq.

Thank you, that answers my question.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.