Cascading timeouts on forwarders leading to DoS
Yorgos Thessalonikefs
yorgos at nlnetlabs.nl
Tue Oct 21 09:16:40 UTC 2025
Hi Graeme,
I understand that in this case you forward all Core outbound traffic to
the Edge Forwarder.
Since you know your network (between core and edge), there is little
value for Unbound tracking response behaviour and adopting to the
network environment.
You could try bringing 'infra-host-ttl' down from the default 900
seconds. Maybe even to a couple of seconds for your case.
Best regards,
-- Yorgos
On 21/10/2025 01:08, Graeme Lee via Unbound-users wrote:
> I have a weird problem with timeouts blocking upstream forwarders when
> there are excessive timeouts on lookups.
>
> Here's a quick outline of the setup:
>
> Core DNS (Unbound) -> Edge Forwarder DNS (Unbound) -> Internet
>
> When a request originates from the core to the internet (eg for
> zone . ), if the destination DNS server is unresponsive for whatever
> reason, the Core DNS times out BEFORE the edge forwarder. This
> increases the eto timeout, and eventually, under enough load and
> unresponsiveness from the offending off-network DNS, the egde forwarder
> is blocked, even though there is actually no problem with it. And no
> DNS stops the network.
>
> The forwarding zone is . so it will still eventually time out.
> Adjusting infra-cache-min-rtt and max-rtt seems only to delay the onset
> of this issue.
>
> Any clues to prevent forwarders from ever being blocked (or even moving
> into 'probing') would be greatly appreciated.
>
> Kind regards,
> Graeme
>
More information about the Unbound-users
mailing list