anchor.diff:    end.
   
   %% We are authoritative and there were no NS records here.
  -resolve_exact_type_match(Message, _Qname, _Qtype, _Host, _CnameChain, MatchedRecords, _Zone, _AuthorityRecords, []) ->
  +resolve_exact_type_match(Message, _Qname, _Qtype, _Host, _CnameChain, MatchedRecords, _Zone, _AuthorityRecords, _NSRecords = []) ->
     Message#dns_message{aa = true, rc = ?DNS_RCODE_NOERROR, answers = Message#dns_message.answers ++ MatchedRecords};
   
   %% We are authoritative and there are NS records here.
  
positive.code:   exact_match_resolution(Message, Qname, Qtype, Host, CnameChain, MatchedRecords, Zone, CnameRecords).
  
  %% No CNAME records found in the records with the Qname
  exact_match_resolution(Message, Qname, Qtype, Host, CnameChain, MatchedRecords, Zone, []) ->
    resolve_exact_match(Message, Qname, Qtype, Host, CnameChain, MatchedRecords, Zone);
  
  %% CNAME records found in the records for the Qname
  
negative.code:   Answer = lists:last(MatchedRecords),
    case NSRecords = erldns_zone_cache:get_delegations(Answer#dns_rr.name) of
      [] ->
        resolve_exact_type_match(Message, Qname, Qtype, Host, CnameChain, MatchedRecords, Zone, _AuthorityRecords, NSRecords = []);
      _ ->
        NSRecord = lists:last(NSRecords),
        case erldns_zone_cache:get_authority(Qname) of
  