add some random domains and script to list nameservers

This commit is contained in:
Seraphim Strub 2023-10-06 11:47:08 +00:00
parent 80b8766d01
commit c659995df9
2 changed files with 36 additions and 0 deletions

View file

@ -13,8 +13,13 @@
"cdn.exposed", "cdn.exposed",
"cdn.garden", "cdn.garden",
"cdn.gmbh", "cdn.gmbh",
"cloudscale.ch",
"compass-security.com",
"cori.us", "cori.us",
"emh.ch",
"ergon.ch",
"example.com", "example.com",
"exoscale.com",
"familie.st", "familie.st",
"family.st", "family.st",
"felizian.ch", "felizian.ch",
@ -28,15 +33,24 @@
"g8.net", "g8.net",
"g8.nz", "g8.nz",
"g8.re", "g8.re",
"g8.si",
"gr8.click", "gr8.click",
"gwydi.me", "gwydi.me",
"heller.support",
"home.cern",
"incline.ch", "incline.ch",
"liip.ch",
"linuxfabrik.ch",
"mojang.studio", "mojang.studio",
"nilu.ch", "nilu.ch",
"nqa.ch", "nqa.ch",
"open-systems.com",
"oriented.net",
"phynecs.com", "phynecs.com",
"poisoned.app", "poisoned.app",
"poisonedapple.ch", "poisonedapple.ch",
"puzzle.ch",
"redhat.ch",
"rievo.app", "rievo.app",
"rievo.cc", "rievo.cc",
"rievo.ch", "rievo.ch",
@ -104,7 +118,10 @@
"switzer.land", "switzer.land",
"swizer.land", "swizer.land",
"thehat.ch", "thehat.ch",
"threema.ch",
"ti8m.com",
"trashcitizen.com", "trashcitizen.com",
"unlogis.ch", "unlogis.ch",
"vshn.ch",
"xii.st" "xii.st"
] ]

View file

@ -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))
}
}