From 457b9806464b653f0af03cf7636306c27f94221b 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). (cherry picked from commit 2c68abe75d908b4a32a7de229c75af137dc3ec5a) --- pdns/reczones.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pdns/reczones.cc b/pdns/reczones.cc index fd42fe9b9e..918a870d97 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -326,9 +326,9 @@ void RPZIXFRTracker(const ComboAddress& master, boost::optionald_st.refresh=refresh; + sr=loadRPZFromServer(master, zoneName, zone, defpol, maxTTL, tt, maxReceivedBytes, localAddress, axfrTimeout); + 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