<div>i have confused with the situation that qtype is DS.</div><div> </div><div>for example:  two zones servered by the authoritative server, "<a href="http://example.com" target="_blank">example.com</a>" and "<a href="http://aa.example.com" target="_blank">aa.example.com</a>".  in zone "<a href="http://example.com" target="_blank">example.com</a>", there are no records for "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" and its children. as a result, there is no delegated ns rrs for "<a href="http://aa.example.com" target="_blank">aa.example.com</a>"  (because the zone of "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" is already servered by the authoritative server, this configuration is incorrect). when a query with qname "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" and qtype DS comes, which zone should be chosen. if the zone of "<a href="http://example.com" target="_blank">example.com</a>" is chosen, NXDOMAIN will be returned. but if the zone "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" is chosen, NOERROR will be returned.</div>

<div> </div><div>another situation: two zones servered by the authoritative server, "<a href="http://example.com" target="_blank">example.com</a>" and "<a href="http://aa.example.com" target="_blank">aa.example.com</a>". in zone "<a href="http://example.com" target="_blank">example.com</a>", there are NS records for "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" but no DS records. when a query with qname "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" and qtype DS comes, which one of the following cases will be ok? </div>

<div>case1:  choose the zone "<a href="http://example.com" target="_blank">example.com</a>", return the NS rrs of "<a href="http://aa.example.com" target="_blank">aa.example.com</a>." in authority section, clear AA flag and set opcode NOERROR.</div>

<div>case2:  choose the zone "<a href="http://example.com" target="_blank">example.com</a>", return the SOA rr of "<a href="http://example.com" target="_blank">example.com</a>" in authority section, set AA flag and set opcode NOERROR.</div>

<div>case3:  choose the zone "<a href="http://aa.example.com" target="_blank">aa.example.com</a>", return the SOA rr of "<a href="http://aa.example.com" target="_blank">aa.example.com</a>" in authority section, set AA flag and set opcode NOERROR.</div>

<div> </div><div>which one should be ok and why?</div><div> </div><div>Thanks</div><div>Chao</div>