Homeassitant Flooding my Pi-Hole

I recently expanded my home network from a /24 subnet (255.255.255.0) to a /22 subnet (255.255.252.0). This increased my available IP address range from 192.168.1.1–192.168.1.254 to 192.168.1.1–192.168.3.254, allowing me to better organize and segment devices.

Since making this change, Pi-hole is reporting a massive number of reverse DNS queries from my Home Assistant instance. It seems Home Assistant runs a periodic discovery scan and attempts to resolve hostnames via in-addr.arpa for the entire subnet.

At first, I thought this was just a harmless warning — Pi-hole logs show it blocks the offending IP (Home Assistant) for 60 seconds after the flood of requests. However, after a few days, the system becomes unstable:

  • CPU usage on the Pi-hole server reaches 100%.
  • Internet access across the network becomes unreliable or stops completely.
  • Pi-hole essentially crashes or stops working properly, possibly due to an overloaded log file or resource exhaustion.

So… any ideas on how to:

  • Limit Home Assistant’s discovery scope?
  • Prevent these reverse DNS floods?
  • Or handle the load better on Pi-hole?

Any help or pointers would be much appreciated. Thanks!

by the way, this happens with a fresh pi-hole install and a fresh homeassitan install (as HASSOS or Docker…)

1 Like

I don’t remember what issue I had with Pi-hole but switching to AdGuard Home solved it.

Several threads about the reverse DNS lookups issue, here’s one with a solution near the end for how to disable it:

https://community.home-assistant.io/t/ha-spamming-ptr-dns-lookups/143687/90

I had done that with my HA setup and have noticed ZERO issues with the HA system functioning correctly. Not sure I understand why it was decided that hourly reverse DNS lookups was even a good idea. There is absolutely nothing else on my network that has that same behavior.

It is near the very top of my list of irritants about HA and the decisions made the core developer team. And the hard coded backup DNS is high on that irritant list too.

Thanks, Seems that the issue is only an issue in “advanced” networks, for a home user with basic network (/24) it really does not matter…

Oh it is present in /24 networks as well. That is how mine is setup. It becomes more noticeable and causes for real network wide performance issues when people are running HA in larger subnets.

Yes that is the net end change. But it can be done via GUI and the HACS addon.

Ideally I’d rather not be mucking about in that default config, but since there is no native UI way to disable the reverse DNS lookup, that is what must be done.

is the solution you are referring to the following?

default_config:
default_config_exclude:
- dhcp

or is it to install tronikos/default_config_disabler: Disables components from Home Assistant’s default_config ?

(sorry to ask again, but there are many “solutions” on that huge post :smiley:

Yes. The disabler provides a GUI way to make that default config file change.

1 Like

Ì will give it a go. thanks

it did work. wha I need now to understand is what I lost when activating that :smiley:

Presumably will lose some auto-discovery of new things added to the network. In my case though, I added some Kauf WiFi smart plugs after making that change, and they were quickly recognized by HA without issue.

I voted for and made a comment to this existing feature request to offer an ability to toggle it off without having to resort to using HACS.

https://community.home-assistant.io/t/dhcp-add-configuration-options/677111/2

1 Like

Unfortunately, disabling dhcp did not help for me…not sure what else I could do!