- when processing authoritative queries for ./NS, set 'gluedb' so
that glue will be included in the response, regardless of how
'minimal-responses' has been configured.
}
/*
- * BIND 8 priming queries need the additional section.
+ * Always add glue for root priming queries, regardless
+ * of "minimal-responses" setting.
*/
if (dns_name_equal(qctx->client->query.qname, dns_rootname)) {
qctx->client->query.attributes &=
~NS_QUERYATTR_NOADDITIONAL;
+ dns_db_attach(qctx->db, &qctx->client->query.gluedb);
}
}
qctx_clean(qctx);
qctx_freedata(qctx);
+ if (qctx->client->query.gluedb != NULL) {
+ dns_db_detach(&qctx->client->query.gluedb);
+ }
+
/*
* Clear the AA bit if we're not authoritative.
*/