unbound: keep probing when servers are down

Message ID 20210106101649.6495-1-jonatan.schlag@ipfire.org
State Accepted
Commit 211b6bc16e3d1c383e63835572c21d8f7ed63822
Headers
Series unbound: keep probing when servers are down |

Commit Message

Jonatan Schlag Jan. 6, 2021, 10:16 a.m. UTC
  Till now when a server was in the "blocking regime" there was one probe
made every 15 min, to see if this server is up again. In situations
where all servers where down (e.g. because of a massive package loss)
it could take up to 15 min to have a working dns again.

This patch changes this behaviour in a way that a server marked down is
probed every 2 min.

Fixes: #12557

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 config/unbound/unbound.conf | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/config/unbound/unbound.conf b/config/unbound/unbound.conf
index 3aab6ea46..f78aaae8c 100644
--- a/config/unbound/unbound.conf
+++ b/config/unbound/unbound.conf
@@ -60,6 +60,9 @@  server:
 	# Allow access from everywhere
 	access-control: 0.0.0.0/0 allow
 
+	# Timeout behaviour
+	infra-keep-probing: yes
+
 	# Bootstrap root servers
 	root-hints: "/etc/unbound/root.hints"