dnsimple / erldns

DNS server, in Erlang.
MIT License
398 stars 98 forks source link

Short circuit when qname is not found in the zone's record set #120

Closed aeden closed 3 years ago

aeden commented 3 years ago

This change causes NXDOMAIN to be returned early in the resolve process when the following is true:

  1. The qname is not present in the zone, either directly or via a wildcard match.
  2. The CNAME chain is empty

This PR also moves various log entries out of gen_event handlers and back to the point where the event originally occurs.