1. 19 May, 2020 1 commit
  2. 23 Oct, 2018 1 commit
    • Witold Krecicki's avatar
      Set result to SERVFAIL if upstream responded with FORMERR · b5c9a8ca
      Witold Krecicki authored
      Commit ba912435 causes the resolver to
      respond to a client query with FORMERR when all upstream queries sent to
      the servers authoritative for QNAME elicit FORMERR responses.  This
      happens because resolver code returns DNS_R_FORMERR in such a case and
      dns_result_torcode() acts as a pass-through for all arguments which are
      already a valid RCODE.
      
      The correct RCODE to set in the response returned to the client in the
      case described above is SERVFAIL.  Make sure this happens by overriding
      the RCODE in query_gotanswer(), on the grounds that any format errors in
      the client query itself should be caught long before execution reaches
      that point.  This change should not reduce query error logging accuracy
      as the resolver code itself reports the exact reason for returning a
      DNS_R_FORMERR result using log_formerr().
      b5c9a8ca
  3. 11 May, 2018 1 commit
  4. 23 Feb, 2018 1 commit
  5. 12 Sep, 2017 2 commits
  6. 24 Aug, 2016 1 commit
  7. 27 Jun, 2016 1 commit
  8. 30 Sep, 2015 2 commits
  9. 03 Dec, 2014 2 commits
  10. 15 Sep, 2010 1 commit
  11. 18 Jun, 2010 1 commit
  12. 17 Jun, 2010 1 commit