diff --git a/src/auth.c b/src/auth.c index c114f74..d4556ab 100644 --- a/src/auth.c +++ b/src/auth.c @@ -873,7 +873,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n if (!(ansp = skip_questions(header, qlen))) return 0; /* bad packet */ anscount = authcount = 0; - log_query(F_AUTH, "query", NULL, "truncated", 0); + log_query(F_AUTH, "reply", NULL, "truncated", 0); } if ((auth || local_query) && nxdomain) diff --git a/src/forward.c b/src/forward.c index c2d6e48..4c43fb3 100644 --- a/src/forward.c +++ b/src/forward.c @@ -730,7 +730,7 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server } if (header->hb3 & HB3_TC) - log_query(F_UPSTREAM, "query", NULL, "truncated", 0); + log_query(F_UPSTREAM, NULL, NULL, "truncated", 0); else if (!bogusanswer || (header->hb4 & HB4_CD)) { if (rcode == NXDOMAIN && extract_request(header, n, daemon->namebuff, NULL) && @@ -1364,7 +1364,7 @@ void return_reply(time_t now, struct frec *forward, struct dns_header *header, s daemon->log_display_id = forward->frec_src.log_id; daemon->log_source_addr = &forward->frec_src.source; - log_query(F_UPSTREAM, "query", NULL, "truncated", 0); + log_query(F_UPSTREAM, NULL, NULL, "truncated", 0); for (src = &forward->frec_src; src; src = src->next) if (src->fd != -1 && nn > src->udp_pkt_size) diff --git a/src/rfc1035.c b/src/rfc1035.c index 2eba482..ce7f5c1 100644 --- a/src/rfc1035.c +++ b/src/rfc1035.c @@ -2332,7 +2332,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen, if (!(ansp = skip_questions(header, qlen))) return 0; /* bad packet */ anscount = nscount = addncount = 0; - log_query(F_CONFIG, "query", NULL, "truncated", 0); + log_query(F_CONFIG, "reply", NULL, "truncated", 0); } if (nxdomain)