Fix the DNS rebind protection error
"Your FRITZ!Box's DNS rebind protection rejected your query for reasons of security. The host header of your query is different from the name of the FRITZ!Box." - error page served by the FRITZ!Box in the browser
Affects: FRITZ!Box models on FRITZ!OS 7.x and 8.x - AVM lists the message for every current model in knowledge base article 3565
What this message means
This page comes from the FRITZ!Box itself, not from your provider or the website. AVM documents it for every current FRITZ!Box model: the box shows "Your FRITZ!Box's DNS rebind protection rejected your query for reasons of security. The host header of your query is different from the name of the FRITZ!Box." when a host name is used to reach the FRITZ!Box or a device in the home network [1]. The cause AVM gives is deliberate: "the FRITZ!Box blocks attempts from unfamiliar host names to access its user interface and devices in the home network" as protection against DNS rebinding attacks [1].
The related behaviour is documented in AVM's second article: the box also suppresses DNS answers that point at private IP addresses in the home network [2]. In practice that means a hostname of yours - a DynDNS name, a CNAME, a self-hosted service domain - works from outside but refuses to open from your own Wi-Fi, or a service the Smart DNS provider routes suddenly resolves into your LAN and gets filtered.
Fix it step by step
Cause 1: A host name of yours points into the home network
The documented case: your own domain, host name or CNAME resolves to the FRITZ!Box or a device in the home network, and the box rejects the request.
Fix:
- Open the FRITZ!Box interface and go to Home Network > Network > Network Settings.
- Click 'Change Advanced Network Settings', open the 'DNS Filter' tab, and click 'Add Exception' in the 'DNS Rebind Protection' section [1].
- Enter the complete host name (domain plus subdomain) or CNAME - AVM's instruction is explicit about the complete name - and click 'Add', then 'Apply' [1].
- Restart the box under System > Backup > Restart FRITZ!Box > Restart, which is the second step of AVM's article [1].
AVM also carries a security note for exactly this change: "If you configure exceptions for DNS rebind protection in the FRITZ!Box, a firewall should be used on every computer in the home network" - the exception lifts the protection for that name only [2]. On older FRITZ!OS the same list sits in the 'Domain name exceptions' field in the DNS Rebind Protection section of the Network Settings tab, one domain per line [2].
Cause 2: The exception did not take effect
If you added a name and the page still appears, the entry does not match what the browser sends.
Fix:
- Re-enter the full host name including the subdomain - the HexOS router guide and AVM's article both ask for the complete name, not a bare domain [1] [3].
- Separate several host names with a space on current FRITZ!OS [1]; on older versions each domain goes on a new line [2].
- Restart the box again after changing the list - both AVM articles end their exception procedure with a restart [1] [2].
The exception list is an allow-list of names, not a settings toggle, so a half-typed name filters nothing and changes nothing.
Cause 3: The failing name is actually a DNS resolution problem
There are two failure shapes under one name. If the browser shows the FRITZ!Box's rejection page, the name resolved and reached the box. If instead the client reports "DNS timed out" or "DNS request timed out", the answer never arrived because the box suppressed a private-IP response - that is the second documented behaviour [2] and has its own page: Fix DNS timed out on a FRITZ!Box network.
Fix:
- Determine which shape you have: the rejection page means the exception path above; a timeout means the DNS-level suppression.
- For the timeout shape, follow the steps on the DNS timed out page - same exception mechanism, different evidence.
- If a third-party service (not your own host name) triggers this after a Smart DNS change, check what the name resolves to before editing anything - the protection may be doing exactly what AVM designed it to do.
If nothing helps
Revert the last change: clear the exception you added and restart, then test again with a clean list. Compare the answer of the FRITZ!Box against a public resolver for the failing name to see whether the responses genuinely differ. If you run a local resolver such as Pi-hole or AdGuard Home in the network, the exception list of the FRITZ!Box is not the only filter in the path - the Pi-hole documentation describes how DNS flows through a FRITZ!Box plus a local resolver. And if the name is one you do not control, leave the protection alone: AVM designed it to block unfamiliar host names reaching your home network [1].
FAQ
Did my Smart DNS provider cause this error?
Unlikely. Smart DNS providers answer name queries with their own public server addresses, and the protection filters answers that point into your home network [2]. AVM states the rejection happens when a host name points at the FRITZ!Box or a device in the home network [1]. If you saw the message right after a Smart DNS change, check the address the failing hostname resolves to before blaming the provider.
Can I just switch DNS rebind protection off?
AVM documents no off switch. Its knowledge base only describes configuring exceptions [1], and the HexOS documentation states the same in plain words - the protection is always on in a FRITZ!Box and cannot be turned off [3]. A community-reported workaround mentions a '*' wildcard entry in the exception list, but that is not documented by AVM and we could not verify it.
Does the exception wording differ between FRITZ!OS versions?
Yes. Current FRITZ!OS shows a DNS Filter tab with an Add Exception button [1]; older versions keep a 'Domain name exceptions' field directly in the DNS Rebind Protection section of the Network Settings tab. The behaviour behind both is the same suppression of private-IP answers [2].
Setting up DNS on this device?
Sources
- AVM Knowledge Base - The FRITZ!Box reports 'Your [...] DNS rebind protection rejected your query for reasons of security' (FRITZ!Box 7590 AX) - accessed 2026-11-23
- AVM Knowledge Base - No DNS resolution of private IP addresses (FRITZ!Box 4020) - accessed 2026-11-23
- HexOS Docs - DNS rebind protection - accessed 2026-11-23