1 From 3a3965ac21b1b759eab8799b6edb09195b671306 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Sun, 9 Aug 2015 17:45:06 +0100
4 Subject: [PATCH] Don't answer non-auth queries for auth zones locally when
5 --localise-queries set.
9 1 file changed, 2 insertions(+), 2 deletions(-)
11 diff --git a/src/forward.c b/src/forward.c
12 index 2731b90..b76a974 100644
15 @@ -1365,7 +1365,7 @@ void receive_query(struct listener *listen, time_t now)
18 /* find queries for zones we're authoritative for, and answer them directly */
20 + if (!auth_dns && !option_bool(OPT_LOCALISE))
21 for (zone = daemon->auth_zones; zone; zone = zone->next)
22 if (in_zone(zone, daemon->namebuff, NULL))
24 @@ -1904,7 +1904,7 @@ unsigned char *tcp_request(int confd, time_t now,
27 /* find queries for zones we're authoritative for, and answer them directly */
29 + if (!auth_dns && !option_bool(OPT_LOCALISE))
30 for (zone = daemon->auth_zones; zone; zone = zone->next)
31 if (in_zone(zone, daemon->namebuff, NULL))