r/pihole•
tesfox

Pi Hole cluster being overridden by router CNAME?

I know that title is a little cryptic, but here's the basics of my setup:

  • K3S Cluster running 1 leader/4nodes
  • 2 separate instances of Pi Hole configured identically as independent pods
  • HTTP(s) ingress pointing at the web UI with unique domains for each pod
  • 2 separate load balancers with dedicated ips to flow DNS queries to the Pi Holes
  • Local DNS configured for some local services in Pi Hole
  • Upstream configuration for LAN lookups pointed at my router (UDM Pro) with a local domain configured

I've seen some weird behaviour that sometimes causes my cache to get all wonky and use a global CNAME that points to my local application server, rather than the configured A records for my UI ingress that goes to my cluster, effectively locking me out of the UI, at least via my configured domain. Case in point, this is doing nslookup in my terminal: https://i.imgur.com/EPqhTxP.png

I get my IPs back, but I also get a CNAME, and then that CNAME sits there and takes over... I half wonder if I'm getting a query sent out to the internet, but I can't check the UI easily because of this.

Posted Oct 20, 2022, 8:32 PM UTC

32
[deleted]•

[removed]

1
tesfoxOP•

I did a bit more digging, I was able to connect to my admin UI via a port forward on my cluster, and it looks like while my local DNS is being returned for the A queries, AAAA and HTTPS queries are going to my router, which is most likely reaching out to the internet and getting my (external) universal CNAME.

0