]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Don't answer non-auth queries for auth zones locally when --localise-queries set.
authorSimon Kelley <simon@thekelleys.org.uk>
Sun, 9 Aug 2015 16:45:06 +0000 (17:45 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Sun, 9 Aug 2015 16:45:06 +0000 (17:45 +0100)
src/forward.c

index 2731b90ae0e0e16ace421caaaa266448dcebe80b..b76a974fcd7e19b6f228a49ed0d37edf51a999a4 100644 (file)
@@ -1365,7 +1365,7 @@ void receive_query(struct listener *listen, time_t now)
 
 #ifdef HAVE_AUTH
       /* 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)
          if (in_zone(zone, daemon->namebuff, NULL))
            {
@@ -1904,7 +1904,7 @@ unsigned char *tcp_request(int confd, time_t now,
          
 #ifdef HAVE_AUTH
          /* 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)
              if (in_zone(zone, daemon->namebuff, NULL))
                {