diff --git a/cmd/domaincheckbot/config/domain.json b/cmd/domaincheckbot/config/domain.json index bb0e8d6..8ebc22c 100644 --- a/cmd/domaincheckbot/config/domain.json +++ b/cmd/domaincheckbot/config/domain.json @@ -13,8 +13,13 @@ "cdn.exposed", "cdn.garden", "cdn.gmbh", + "cloudscale.ch", + "compass-security.com", "cori.us", + "emh.ch", + "ergon.ch", "example.com", + "exoscale.com", "familie.st", "family.st", "felizian.ch", @@ -28,15 +33,24 @@ "g8.net", "g8.nz", "g8.re", + "g8.si", "gr8.click", "gwydi.me", + "heller.support", + "home.cern", "incline.ch", + "liip.ch", + "linuxfabrik.ch", "mojang.studio", "nilu.ch", "nqa.ch", + "open-systems.com", + "oriented.net", "phynecs.com", "poisoned.app", "poisonedapple.ch", + "puzzle.ch", + "redhat.ch", "rievo.app", "rievo.cc", "rievo.ch", @@ -104,7 +118,10 @@ "switzer.land", "swizer.land", "thehat.ch", + "threema.ch", + "ti8m.com", "trashcitizen.com", "unlogis.ch", + "vshn.ch", "xii.st" ] \ No newline at end of file diff --git a/cmd/domainchecklist/main.go b/cmd/domainchecklist/main.go new file mode 100644 index 0000000..c6f0649 --- /dev/null +++ b/cmd/domainchecklist/main.go @@ -0,0 +1,19 @@ +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 := range config.Domains { + d := dns.CheckDomain(domain) + if len(d.NS) > 0 && d.NS[0] == "ns.rievo.ch." { + continue + } + log.Println(dns.CheckDomain(domain)) + } +}