Browse Source

- NS records for queries on subzone/NS were going in the answer section

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1140 e5f2f494-b856-4b98-b285-d166d9295462
Evan Hunt 15 years ago
parent
commit
ff0e672d4a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/auth/data_source.cc

+ 3 - 1
src/lib/auth/data_source.cc

@@ -475,7 +475,9 @@ DataSrc::doQuery(Query& q)
                     return;
                 }
                 BOOST_FOREACH (RRsetPtr rrset, auth) {
-                    if (rrset->getType() == task->qtype) {
+                    if (rrset->getType() == RRType::NS()) {
+                        m.addRRset(Section::AUTHORITY(), rrset, q.wantDnssec());
+                    } else if (rrset->getType() == task->qtype) {
                         m.addRRset(Section::ANSWER(), rrset, q.wantDnssec());
                     } else if (rrset->getType() == RRType::DS() &&
                                q.wantDnssec()) {