discordBots/cmd/domainchecklist/main.go

24 lines
488 B
Go
Raw Normal View History

package main
import (
2024-07-15 19:37:06 +00:00
"fmt"
"grow.rievo.dev/discordBots/cmd/domaincheckbot/config"
"grow.rievo.dev/discordBots/cmd/domaincheckbot/dns"
"log"
)
func main() {
log.Println("check domains in domains.json")
2024-07-15 19:37:06 +00:00
for domain, tlds := range config.Domains {
for _, tld := range tlds {
d := dns.CheckDomain(fmt.Sprintf("%v.%v", domain, tld))
if len(d.NS) > 0 && d.NS[0] == "ns.rievo.ch." {
continue
}
log.Println(dns.CheckDomain(fmt.Sprintf("%v.%v", domain, tld)))
}
2024-07-15 19:37:06 +00:00
}
}