From 76f95889dfc66a48eb99edacc134ee598d4051a1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 8 Jul 2020 10:45:05 +0200 Subject: [PATCH] auth: Also declare 'any-lookups-onl' in pdnsutil --- pdns/common_startup.cc | 2 +- pdns/pdnsutil.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 5e9f6188d8..2cf6de6c3e 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -240,7 +240,7 @@ void declareArguments() ::arg().set("max-generate-steps", "Maximum number of $GENERATE steps when loading a zone from a file")="0"; ::arg().setSwitch("upgrade-unknown-types","Transparently upgrade known TYPExxx records. Recommended to keep off, except for PowerDNS upgrades until data sources are cleaned up")="no"; - ::arg().set("any-lookups-only", "Send only ANY lookup operations to the backend to reduce the number of lookups.")="yes"; + ::arg().set("any-lookups-only", "Send only ANY lookup operations to the backend to reduce the number of lookups")="yes"; ::arg().set("rng", "Specify the random number generator to use. Valid values are auto,sodium,openssl,getrandom,arc4random,urandom.")="auto"; ::arg().setDefaults(); diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index be3bd8b1f7..b61f8c5800 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -131,6 +131,7 @@ static void loadMainConfig(const std::string& configdir) ::arg().set("chroot","Switch to this chroot jail")=""; ::arg().set("dnssec-key-cache-ttl","Seconds to cache DNSSEC keys from the database")="30"; ::arg().set("domain-metadata-cache-ttl","Seconds to cache domain metadata from the database")="60"; + ::arg().set("any-lookups-only","Send only ANY lookup operations to the backend to reduce the number of lookups")="yes"; // Keep this line below all ::arg().set() statements if (! ::arg().laxFile(configname.c_str())) -- 2.47.2