summaryrefslogtreecommitdiff
path: root/util/data/msgencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/data/msgencode.c')
-rw-r--r--util/data/msgencode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/data/msgencode.c b/util/data/msgencode.c
index be69f628a507..1746cfbb8fab 100644
--- a/util/data/msgencode.c
+++ b/util/data/msgencode.c
@@ -624,6 +624,9 @@ positive_answer(struct reply_info* rep, uint16_t qtype) {
for(i=0;i<rep->an_numrrsets; i++) {
if(ntohs(rep->rrsets[i]->rk.type) == qtype) {
+ /* for priming queries, type NS, include addresses */
+ if(qtype == LDNS_RR_TYPE_NS)
+ return 0;
/* in case it is a wildcard with DNSSEC, there will
* be NSEC/NSEC3 records in the authority section
* that we cannot remove */