From 06ff3d8a2625564073957c192fe15846baf898b8 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 16 Jun 2021 13:59:57 +0100 Subject: [PATCH] Log the correct name when we retry a DNSSEC query. If we retry a DNSSEC query because our client retries on us, and we have an answer but are waiting on a DNSSEC query to validate it, log the name of the DNSSEC query, not the client's query. --- src/forward.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/forward.c b/src/forward.c index de36ff2..a9c0096 100644 --- a/src/forward.c +++ b/src/forward.c @@ -340,7 +340,9 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr, blockdata_retrieve(forward->stash, forward->stash_len, (void *)header); plen = forward->stash_len; - + /* get query for logging. */ + extract_request(header, plen, daemon->namebuff, NULL); + if (find_pseudoheader(header, plen, NULL, &pheader, &is_sign, NULL) && !is_sign) PUTSHORT(SAFE_PKTSZ, pheader);