prime.go aktualisiert
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 2m59s

This commit is contained in:
TheArrayser 2025-01-18 16:10:32 +01:00
parent d7d9e437fe
commit 7fc51b5d54

View File

@ -120,6 +120,19 @@ func HandlePrimeNumberChecker(question dns.Question) dns.RR {
if !IsNumber(mainDomainPart) { if !IsNumber(mainDomainPart) {
// return cname to isnot.prime.cringe-studios.com // return cname to isnot.prime.cringe-studios.com
log.Println("17") 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{ return &dns.CNAME{
Hdr: dns.RR_Header{ Hdr: dns.RR_Header{
Name: question.Name, Name: question.Name,