debug-nachrichten ergänzt
All checks were successful
release-tag / release-image (push) Successful in 43s

This commit is contained in:
2025-01-15 08:59:02 +01:00
parent 3bc82edb9a
commit 239add14dd

10
main.go
View File

@@ -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)