discordBots/cmd/domainchecklist/main.go

23 lines
410 B
Go
Raw Normal View History

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")
2024-07-15 19:37:06 +00:00
for domain, tlds := range config.Domains {
for _, tld := range tlds {
2024-07-16 19:53:18 +00:00
d := dns.CheckDomain(domain, tld)
2024-07-15 19:37:06 +00:00
if len(d.NS) > 0 && d.NS[0] == "ns.rievo.ch." {
continue
}
2024-07-16 19:53:18 +00:00
log.Println(d)
}
2024-07-15 19:37:06 +00:00
}
}