]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
emit error when dot-to-auth-names is set without DoT support
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 1 Jul 2021 20:33:48 +0000 (22:33 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 1 Jul 2021 20:33:48 +0000 (22:33 +0200)
pdns/pdns_recursor.cc

index 457019077b0a3599997b08ad1b42620a9f560aa5..8ec44fff7ed8845837ad83d377ff90119ece31f8 100644 (file)
@@ -5074,6 +5074,11 @@ static int serviceMain(int argc, char*argv[])
     SuffixMatchNode dotauthNames;
     vector<string> parts;
     stringtok(parts, ::arg()["dot-to-auth-names"], " ,");
+#ifndef HAVE_DNS_OVER_TLS
+    if (parts.size()) {
+      g_log << Logger::Error << "dot-to-auth-names setting contains names, but Recursor was built without DNS over TLS support. Setting will be ignored."<<endl;
+    }
+#endif
     for (const auto &p : parts) {
       dotauthNames.add(DNSName(p));
     }