#include "pdns/lock.hh"
#include "pdns/auth-domaincache.hh"
-extern AuthDomainCache g_domainCache;
-
/*
All instances of this backend share one s_state, which is indexed by zone name and zone id.
The s_state is protected by a read/write lock, and the goal it to only interact with it briefly.
*/
#pragma once
#include <string>
-#include <map>
-#include "dns.hh"
-
#include <unordered_map>
-
-#include "dns.hh"
-#include "dnspacket.hh"
+#include "dnsname.hh"
#include "lock.hh"
class AuthDomainCache : public boost::noncopyable
time_t d_ttl;
};
+
+extern AuthDomainCache g_domainCache;
extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S
extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads
extern AuthQueryCache QC;
-extern AuthDomainCache g_domainCache;
extern std::unique_ptr<DNSProxy> DP;
extern std::unique_ptr<DynListener> dl;
extern CommunicatorClass Communicator;
struct UeberBackendSetupArgFixture {
UeberBackendSetupArgFixture() {
- extern AuthDomainCache g_domainCache;
extern AuthQueryCache QC;
::arg().set("query-cache-ttl")="0";
::arg().set("negquery-cache-ttl")="0";
static void testWithoutThenWithCache(std::function<void(UeberBackend& ub)> func)
{
- extern AuthDomainCache g_domainCache;
extern AuthQueryCache QC;
{
#include "logger.hh"
#include "statbag.hh"
-extern AuthDomainCache g_domainCache;
extern StatBag S;
vector<UeberBackend *>UeberBackend::instances;