Skip to content

Commit

Permalink
Use stubDoResolve for ALIAS
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Aug 27, 2024
1 parent 95e7177 commit 69fde7f
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 481 deletions.
2 changes: 0 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,6 @@ common_sources += files(
src_dir / 'dnspacket.hh',
src_dir / 'dnsparser.cc',
src_dir / 'dnsparser.hh',
src_dir / 'dnsproxy.cc',
src_dir / 'dnsproxy.hh',
src_dir / 'dnsrecords.cc',
src_dir / 'dnsrecords.hh',
src_dir / 'dnssecinfra.cc',
Expand Down
1 change: 0 additions & 1 deletion pdns/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ pdns_server_SOURCES = \
dnsname.cc dnsname.hh \
dnspacket.cc dnspacket.hh \
dnsparser.cc \
dnsproxy.cc dnsproxy.hh \
dnsrecords.cc dnsrecords.hh \
dnssecinfra.cc dnssecinfra.hh \
dnsseckeeper.hh \
Expand Down
7 changes: 0 additions & 7 deletions pdns/auth-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
#include "dynlistener.hh"
#include "dynhandler.hh"
#include "communicator.hh"
#include "dnsproxy.hh"
#include "utility.hh"
#include "dnsrecords.hh"
#include "version.hh"
Expand Down Expand Up @@ -123,7 +122,6 @@ StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S
AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads
AuthQueryCache QC;
AuthZoneCache g_zoneCache;
std::unique_ptr<DNSProxy> DP{nullptr};
static std::unique_ptr<DynListener> s_dynListener{nullptr};
CommunicatorClass Communicator;
static double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0};
Expand Down Expand Up @@ -786,11 +784,6 @@ static void mainthread()
AuthWebServer webserver;
Utility::dropUserPrivs(newuid);

if (::arg().mustDo("resolver")) {
DP = std::make_unique<DNSProxy>(::arg()["resolver"], ::arg()["dnsproxy-udp-port-range"]);
DP->go();
}

try {
doSecPoll(true);
}
Expand Down
2 changes: 0 additions & 2 deletions pdns/auth-main.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "communicator.hh"
#include "distributor.hh"
#include "dnspacket.hh"
#include "dnsproxy.hh"
#include "dynlistener.hh"
#include "nameserver.hh"
#include "statbag.hh"
Expand All @@ -40,7 +39,6 @@ extern ArgvMap theArg;
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 std::unique_ptr<DNSProxy> DP;
extern CommunicatorClass Communicator;
void carbonDumpThread(); // Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function.
extern bool g_anyToTcp;
Expand Down
Loading

0 comments on commit 69fde7f

Please sign in to comment.