Skip to content

Home Assistant gets me banned from quad9 #147152

@theseal

Description

@theseal

The problem

I use my router as DNS resolver and recently changed its forwarder from Cloudflare to Quad9. This change in combination with the fact that I'm running Home Assistant in the same network caused a lot of headaches and connection issue - both in HA and the network in general. After some digging I found that Quad9 occasionally (sometimes every hour) temporarily banned my IP so any DNS queries times out.

Contacted the Quad9 support and their first question was if I was running Home Assistant (so the problem is probably spread) and linked to the forums: https://community.home-assistant.io/t/ha-spamming-ptr-dns-lookups/143687/88

The support stated that

We're receiving large PTR spikes from your IP that result in 20-minute blocks. Yes, the block duration are severe, because PTR spikes are the most-common attack vector for open recursive resolvers.

With tcpdump I could confirm the same behaviour that the forum threads describes - Home Assistant asks a lot of PTR records hourly which then bans me (an others?) for 20 min causing the internet of things to not be to happy.

With that said I'm wondering what the PTR querying really gain. Who has PTR records for their home network setup? I'm guessing very few which makes me wondering if this is a sane default to have in default configuration.

Can we make PTR querying optional or slow it down?

I would guess that this is related to #145708

What version of Home Assistant Core has the issue?

core-2025.6.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

dhcp

Link to integration documentation on our website

https://www.home-assistant.io/integrations/dhcp

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions