diff --git a/main.go b/main.go index 358c37d..89a8b71 100644 --- a/main.go +++ b/main.go @@ -208,7 +208,12 @@ func handleDNSRequest(w dns.ResponseWriter, r *dns.Msg) { fmt.Println("!", "handleDNSRequest", "case dns.TypeA", "IPv4", "error", err) } } + } else { + if DEBUG { + fmt.Println("!", "handleDNSRequest", "case dns.TypeA", "not found in D") + } } + case dns.TypeAAAA: // IPv6-Anfrage // Beispielhafte IPv6-Adresse für Demonstration ip, exists := D[q.Name] @@ -224,10 +229,13 @@ func handleDNSRequest(w dns.ResponseWriter, r *dns.Msg) { fmt.Println("!", "handleDNSRequest", "case dns.TypeAAAA", "IPv6", "error", err) } } + } else { + if DEBUG { + fmt.Println("!", "handleDNSRequest", "case dns.TypeAAAA", "not found in D") + } } case dns.TypePTR: for a, b := range D { - iptocheck := reverseString(b.Ipv4) if iptocheck+".in-addr.arpa." == q.Name { rr, err := dns.NewRR(q.Name + " PTR " + a)