diff --git a/core/handler.go b/core/handler.go index 981b5ba..e94bfab 100644 --- a/core/handler.go +++ b/core/handler.go @@ -28,14 +28,19 @@ func HandleDNSRequest(w dns.ResponseWriter, r *dns.Msg) { switch question.Qtype { case dns.TypeA: handleARecord(question, msg) + break case dns.TypeAAAA: handleAAAARecord(question, msg) + break case dns.TypeCNAME: handleCNAMERecord(question, msg) + break case dns.TypeMX: handleMXRecord(question, msg) + break case dns.TypeTXT: handleTXTRecord(question, msg) + break } } // 发送响应