opensslsigners.cc opensslsigners.hh \
qtype.cc \
randomhelper.cc \
+ root-dnssec.hh \
rcpgenerator.cc rcpgenerator.hh \
rec-lua-conf.hh \
recursor_cache.hh \
#include "base64.hh"
#include "remote_logger.hh"
#include "validate.hh"
+#include "root-dnssec.hh"
GlobalStateHolder<LuaConfigItems> g_luaconfs;
LuaConfigItems::LuaConfigItems()
{
- auto ds=unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make("19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5")));
- dsAnchors[DNSName(".")].insert(*ds);
+ for (const auto &dsRecord : rootDSs) {
+ auto ds=unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make(dsRecord)));
+ dsAnchors[DNSName(".")].insert(*ds);
+ }
}
/* DID YOU READ THE STORY ABOVE? */
resolver.hh resolver.cc \
responsestats.hh responsestats.cc \
root-addresses.hh \
+ root-dnssec.hh \
rpzloader.cc rpzloader.hh \
secpoll-recursor.cc \
secpoll-recursor.hh \
--- /dev/null
+../root-dnssec.hh
\ No newline at end of file
--- /dev/null
+/*
+ * This file is part of PowerDNS or dnsdist.
+ * Copyright -- PowerDNS.COM B.V. and its contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * In addition, for the avoidance of any doubt, permission is granted to
+ * link this program with OpenSSL and to (re)distribute the binaries
+ * produced as the result of such linking.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#pragma once
+
+static const char*rootDSs[]={"19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5"};
#include "dnssecinfra.hh"
#include "recursor_cache.hh"
#include "base32.hh"
+#include "root-dnssec.hh"
#include "validate.hh"
StatBag S;
GlobalStateHolder<LuaConfigItems> g_luaconfs;
LuaConfigItems::LuaConfigItems()
{
- auto ds=std::unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make("19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5")));
- dsAnchors[DNSName(".")].insert(*ds);
+ for (const auto &dsRecord : rootDSs) {
+ auto ds=unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make(dsRecord)));
+ dsAnchors[DNSName(".")].insert(*ds);
+ }
}
DNSFilterEngine::DNSFilterEngine() {}