]> granicus.if.org Git - pdns/commitdiff
Recursor: fix reloading forward-zones-recurse
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 7 Feb 2014 12:59:20 +0000 (13:59 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 7 Feb 2014 14:11:03 +0000 (15:11 +0100)
f-z-r was previously not affected by reload-zones, but really should
be.

pdns/reczones.cc

index 2b28eea33008555dd613ebb1635d90c5ef23613c..40e41ad4592744a6d5cfe5d5c1eead08bfbf3d53 100644 (file)
@@ -255,6 +255,7 @@ string reloadAuthAndForwards()
     if(!::arg().preParseFile(configname.c_str(), "forward-zones")) 
       L<<Logger::Warning<<"Unable to re-parse configuration file '"<<configname<<"'"<<endl;
     ::arg().preParseFile(configname.c_str(), "forward-zones-file");
+    ::arg().preParseFile(configname.c_str(), "forward-zones-recurse");
     ::arg().preParseFile(configname.c_str(), "auth-zones");
     ::arg().preParseFile(configname.c_str(), "export-etc-hosts", "off");
     ::arg().preParseFile(configname.c_str(), "serve-rfc1918");
@@ -268,6 +269,7 @@ string reloadAuthAndForwards()
     BOOST_FOREACH(const std::string& fn, extraConfigs) {
       ::arg().preParseFile(fn.c_str(), "forward-zones", ::arg()["forward-zones"]);
       ::arg().preParseFile(fn.c_str(), "forward-zones-file", ::arg()["forward-zones-file"]);
+      ::arg().preParseFile(fn.c_str(), "forward-zones-recurse", ::arg()["forward-zones-recurse"]);
       ::arg().preParseFile(fn.c_str(), "auth-zones",::arg()["auth-zones"]);
       ::arg().preParseFile(fn.c_str(), "export-etc-hosts",::arg()["export-etc-hosts"]);
       ::arg().preParseFile(fn.c_str(), "serve-rfc1918",::arg()["serve-rfc1918"]);
@@ -275,6 +277,7 @@ string reloadAuthAndForwards()
 
     ::arg().preParse(g_argc, g_argv, "forward-zones");
     ::arg().preParse(g_argc, g_argv, "forward-zones-file");
+    ::arg().preParse(g_argc, g_argv, "forward-zones-recurse");
     ::arg().preParse(g_argc, g_argv, "auth-zones");
     ::arg().preParse(g_argc, g_argv, "export-etc-hosts");
     ::arg().preParse(g_argc, g_argv, "serve-rfc1918");