}
return ret.release();
}
+
+static RemoteLoggerStats_t* pleaseGetNODFramestreamLoggerStats()
+{
+ auto ret = make_unique<RemoteLoggerStats_t>();
+
+ if (t_nodFrameStreamServersInfo.servers) {
+ for (const auto& server : *t_nodFrameStreamServersInfo.servers) {
+ ret->emplace(std::make_pair(server->address(), server->getStats()));
+ }
+ }
+ return ret.release();
+}
#endif
static void remoteLoggerStats(const string& type, const RemoteLoggerStats_t& stats, ostringstream& outpustStream)
#ifdef HAVE_FSTRM
stats = broadcastAccFunction<RemoteLoggerStats_t>(pleaseGetFramestreamLoggerStats);
remoteLoggerStats("dnstapFrameStream", stats, outputStream);
+ stats = broadcastAccFunction<RemoteLoggerStats_t>(pleaseGetNODFramestreamLoggerStats);
+ remoteLoggerStats("dnstapNODFrameStream", stats, outputStream);
#endif
return outputStream.str();
}
list.emplace_back(stats1, "protobuf");
auto stats2 = broadcastAccFunction<RemoteLoggerStats_t>(pleaseGetOutgoingRemoteLoggerStats);
list.emplace_back(stats2, "outgoingProtobuf");
-#ifdef HAVE_FSTREAM
+#ifdef HAVE_FSTRM
auto stats3 = broadcastAccFunction<RemoteLoggerStats_t>(pleaseGetFramestreamLoggerStats);
list.emplace_back(stats3, "dnstapFrameStream");
+ auto stats4 = broadcastAccFunction<RemoteLoggerStats_t>(pleaseGetNODFramestreamLoggerStats);
+ list.emplace_back(stats4, "dnstapNODFrameStream");
#endif
uint64_t count = 0;
for (const auto& [stats, type] : list) {
++++++++++
The setting ``new-domain-lookup=<base domain>`` will cause the recursor to issue a DNS A record lookup to ``<newly observed domain>.<base domain>``. This can be a suitable method to send NOD data to an offsite or remote partner, however care should be taken to ensure that data is not leaked inadvertently.
-To log NOD information to a dnstap stream, refer to :func:`dnstapFrameStreamServer`.
+To log NOD information to a dnstap stream, refer to :func:`dnstapNODFrameStreamServer`.
Protobuf Logging
++++++++++++++++
+++++++
The setting ``unique-response-log`` is enabled by default once the NOD feature is enabled, and will log the newly observed domain to the recursor logfile.
-To log UDR information to a dnstap stream, refer to :func:`dnstapFrameStreamServer`.
+To log UDR information to a dnstap stream, refer to :func:`dnstapNODFrameStreamServer`.
Protobuf Logging
++++++++++++++++