prime.go aktualisiert
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 2m59s
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 2m59s
This commit is contained in:
parent
d7d9e437fe
commit
7fc51b5d54
13
prime.go
13
prime.go
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user