mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 03:11:56 -05:00
Always return address records in additional section for NS queries
This commit is contained in:
parent
1cee557993
commit
d727eaae6c
1 changed files with 9 additions and 1 deletions
|
|
@ -1683,7 +1683,9 @@ query_additional_cb(void *arg, const dns_name_t *name, dns_rdatatype_t qtype) {
|
|||
* If we want only minimal responses and are here, then it must
|
||||
* be for glue.
|
||||
*/
|
||||
if (qctx->view->minimalresponses == dns_minimal_yes) {
|
||||
if (qctx->view->minimalresponses == dns_minimal_yes &&
|
||||
client->query.qtype != dns_rdatatype_ns)
|
||||
{
|
||||
goto try_glue;
|
||||
}
|
||||
|
||||
|
|
@ -11287,6 +11289,12 @@ ns_query_start(ns_client_t *client, isc_nmhandle_t *handle) {
|
|||
{
|
||||
client->query.attributes |= (NS_QUERYATTR_NOAUTHORITY |
|
||||
NS_QUERYATTR_NOADDITIONAL);
|
||||
} else if (qtype == dns_rdatatype_ns) {
|
||||
/*
|
||||
* Always turn on additional records for NS queries.
|
||||
*/
|
||||
client->query.attributes &= ~(NS_QUERYATTR_NOAUTHORITY |
|
||||
NS_QUERYATTR_NOADDITIONAL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue