Abort DNS check if no nameservers are configured for the domain

master
Sebastian Lohff 7 years ago
parent e35f89bc57
commit 6ac89bb998

@ -51,6 +51,9 @@ def dnsQuery(domain, rrType, nameserverIp):
def checkDomain(domain, tldNameserver, nameservers):
result = []
if nameservers.count() == 0:
return [("err", "Domain %s has no nameservers attached to it, nothing to check" % domain)]
# build record set
nsRecords = [(domain, "NS", list(ns.name for ns in nameservers))]
glueRecords = []

Loading…
Cancel
Save