discordBots/cmd/domainchecklist/main.go
2024-07-16 20:09:46 +00:00

22 lines
410 B
Go

package main
import (
"grow.rievo.dev/discordBots/cmd/domaincheckbot/config"
"grow.rievo.dev/discordBots/cmd/domaincheckbot/dns"
"log"
)
func main() {
log.Println("check domains in domains.json")
for domain, tlds := range config.Domains {
for _, tld := range tlds {
d := dns.CheckDomain(domain, tld)
if len(d.NS) > 0 && d.NS[0] == "ns.rievo.ch." {
continue
}
log.Println(d)
}
}
}