debug-nachrichten ergänzt
All checks were successful
release-tag / release-image (push) Successful in 43s
All checks were successful
release-tag / release-image (push) Successful in 43s
This commit is contained in:
10
main.go
10
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)
|
||||
|
Reference in New Issue
Block a user