Compare commits
2 Commits
995c6b4d68
...
d174d2a25a
| Author | SHA1 | Date | |
|---|---|---|---|
| d174d2a25a | |||
| 70d9354e17 |
1
main.go
1
main.go
@@ -193,7 +193,6 @@ func handleDNSRequest(w dns.ResponseWriter, r *dns.Msg) {
|
|||||||
|
|
||||||
// Durchlaufe alle Fragen in der Anfrage
|
// Durchlaufe alle Fragen in der Anfrage
|
||||||
for _, q := range r.Question {
|
for _, q := range r.Question {
|
||||||
fmt.Println(q.Qtype)
|
|
||||||
switch q.Qtype {
|
switch q.Qtype {
|
||||||
case dns.TypeA: // IPv4-Anfrage
|
case dns.TypeA: // IPv4-Anfrage
|
||||||
ip, exists := D[q.Name]
|
ip, exists := D[q.Name]
|
||||||
|
|||||||
Reference in New Issue
Block a user