Always answer queries for authoritative zones locally, never forward.

This commit is contained in:
Simon Kelley
2013-10-18 22:00:39 +01:00
parent 53c4c5c859
commit b485ed97aa
4 changed files with 38 additions and 6 deletions

View File

@@ -876,7 +876,7 @@ extern struct daemon {
char *packet; /* packet buffer */
int packet_buff_sz; /* size of above */
char *namebuff; /* MAXDNAME size buffer */
unsigned int local_answer, queries_forwarded;
unsigned int local_answer, queries_forwarded, auth_answer;
struct frec *frec_list;
struct serverfd *sfds;
struct irec *interfaces;
@@ -993,6 +993,7 @@ int private_net(struct in_addr addr, int ban_localhost);
/* auth.c */
#ifdef HAVE_AUTH
size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t now, union mysockaddr *peer_addr);
int in_zone(struct auth_zone *zone, char *name, char **cut);
#endif
/* util.c */