summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2013-10-18 22:00:39 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2013-10-18 22:00:39 +0100
commitb485ed97aa5726644d71d3a16ccdd058d6a8d73a (patch)
treed8a8993dc976dbbbe0817105597a9cc8d6f4c335 /src/cache.c
parent53c4c5c85942d4733f4723531c4d325235448326 (diff)
downloaddnsmasq-b485ed97aa5726644d71d3a16ccdd058d6a8d73a.tar.gz
Always answer queries for authoritative zones locally, never forward.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c
index 6247cab..d99aba6 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -1161,6 +1161,9 @@ void dump_cache(time_t now)
daemon->cachesize, cache_live_freed, cache_inserted);
my_syslog(LOG_INFO, _("queries forwarded %u, queries answered locally %u"),
daemon->queries_forwarded, daemon->local_answer);
+#ifdef HAVE_AUTH
+ my_syslog(LOG_INFO, _("queries for authoritative zones %u"), daemon->auth_answer);
+#endif
/* sum counts from different records for same server */
for (serv = daemon->servers; serv; serv = serv->next)