From 2c68abe75d908b4a32a7de229c75af137dc3ec5a Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 21 Feb 2018 17:37:02 +0100 Subject: [PATCH] rec: Ensure we don't hammer the RPZ master server Before, if the `refresh` was not set in the lua-config file's `rpzMaster` statement, we would keep trying to get delta's the whole time. This commit ensures we update the zone's refresh config to the value from the AXFR'd zone (if not set in the config). --- pdns/reczones.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pdns/reczones.cc b/pdns/reczones.cc index b4c84a95f..3198f8099 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -327,8 +327,8 @@ void RPZIXFRTracker(const ComboAddress& master, boost::optionald_st.refresh=refresh; + if(refresh == 0) { + refresh = sr->d_st.refresh; } zone->setSerial(sr->d_st.serial); } @@ -340,7 +340,11 @@ void RPZIXFRTracker(const ComboAddress& master, boost::optional