Commit 3a3965ac authored by Simon Kelley's avatar Simon Kelley

Don't answer non-auth queries for auth zones locally when --localise-queries set.

parent a7369bef
...@@ -1365,7 +1365,7 @@ void receive_query(struct listener *listen, time_t now) ...@@ -1365,7 +1365,7 @@ void receive_query(struct listener *listen, time_t now)
#ifdef HAVE_AUTH #ifdef HAVE_AUTH
/* find queries for zones we're authoritative for, and answer them directly */ /* find queries for zones we're authoritative for, and answer them directly */
if (!auth_dns) if (!auth_dns && !option_bool(OPT_LOCALISE))
for (zone = daemon->auth_zones; zone; zone = zone->next) for (zone = daemon->auth_zones; zone; zone = zone->next)
if (in_zone(zone, daemon->namebuff, NULL)) if (in_zone(zone, daemon->namebuff, NULL))
{ {
...@@ -1904,7 +1904,7 @@ unsigned char *tcp_request(int confd, time_t now, ...@@ -1904,7 +1904,7 @@ unsigned char *tcp_request(int confd, time_t now,
#ifdef HAVE_AUTH #ifdef HAVE_AUTH
/* find queries for zones we're authoritative for, and answer them directly */ /* find queries for zones we're authoritative for, and answer them directly */
if (!auth_dns) if (!auth_dns && !option_bool(OPT_LOCALISE))
for (zone = daemon->auth_zones; zone; zone = zone->next) for (zone = daemon->auth_zones; zone; zone = zone->next)
if (in_zone(zone, daemon->namebuff, NULL)) if (in_zone(zone, daemon->namebuff, NULL))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment