anchor.diff:  
   %% There were no matches for exact name and type, so now we are looking for NS records
   %% in the exact name matches.
  -resolve_exact_match(Message, _Qname, Qtype, Host, CnameChain, MatchedRecords, Zone, [], AuthorityRecords) ->
  +resolve_exact_match(Message, _Qname, Qtype, Host, CnameChain, MatchedRecords, Zone, _ExactTypeMatches = [], AuthorityRecords) ->
     %lager:debug("No exact matches for name and type"),
     ReferralRecords = lists:filter(erldns_records:match_type(?DNS_TYPE_NS), MatchedRecords), % Query matched records for NS type
     resolve_no_exact_type_match(Message, Qtype, Host, CnameChain, [], Zone, MatchedRecords, ReferralRecords, AuthorityRecords);
  
positive.code: resolve(Message, AuthorityRecords, Host, [Question]) -> resolve(Message, AuthorityRecords, Host, Question);
  %% Resolve the first question. Additional questions will be thrown away for now.
  resolve(Message, AuthorityRecords, Host, [Question|_]) -> resolve(Message, AuthorityRecords, Host, Question);
  %% Start the resolution process on the given question.
  %% Step 1: Set the RA bit to false
  resolve(Message, AuthorityRecords, Host, Question) when is_record(Question, dns_query) ->
    resolve(Message#dns_message{ra = false}, AuthorityRecords, Question#dns_query.name, Question#dns_query.type, Host).
  
  
negative.code:   resolve(Message, Qname, Qtype, erldns_zone_cache:get_records_by_name(Qname), Host, CnameChain, Zone).
  
  %% There were no exact matches on name, so move to the best-match resolution.
  resolve(Message, Qname, Qtype, _MatchedRecords = [], Host, CnameChain, Zone) ->
    %lager:debug("No exact matches, using best-match resolution"),
    best_match_resolution(Message, Qname, Qtype, Host, CnameChain, best_match(Qname, Zone), Zone);
  
  