From 7fc51b5d5449ba52c95a34b9a38e47bc671204a8 Mon Sep 17 00:00:00 2001 From: TheArrayser Date: Sat, 18 Jan 2025 16:10:32 +0100 Subject: [PATCH] prime.go aktualisiert --- prime.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/prime.go b/prime.go index 4e05ad5..88aee97 100644 --- a/prime.go +++ b/prime.go @@ -120,6 +120,19 @@ func HandlePrimeNumberChecker(question dns.Question) dns.RR { if !IsNumber(mainDomainPart) { // return cname to isnot.prime.cringe-studios.com log.Println("17") + + if mainDomainPart == "prime" || mainDomainPart == "optimus" || mainDomainPart == "Primzahl" || mainDomainPart == "optimus prime" { + return &dns.CNAME{ + Hdr: dns.RR_Header{ + Name: question.Name, + Rrtype: dns.TypeCNAME, + Class: dns.ClassINET, + Ttl: 30, + }, + Target: "is.prime.cringe-studios.com.", + } + } + return &dns.CNAME{ Hdr: dns.RR_Header{ Name: question.Name,