Abort DNS check if no nameservers are configured for the domain
This commit is contained in:
parent
e35f89bc57
commit
6ac89bb998
|
@ -51,6 +51,9 @@ def dnsQuery(domain, rrType, nameserverIp):
|
||||||
def checkDomain(domain, tldNameserver, nameservers):
|
def checkDomain(domain, tldNameserver, nameservers):
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
|
if nameservers.count() == 0:
|
||||||
|
return [("err", "Domain %s has no nameservers attached to it, nothing to check" % domain)]
|
||||||
|
|
||||||
# build record set
|
# build record set
|
||||||
nsRecords = [(domain, "NS", list(ns.name for ns in nameservers))]
|
nsRecords = [(domain, "NS", list(ns.name for ns in nameservers))]
|
||||||
glueRecords = []
|
glueRecords = []
|
||||||
|
|
Loading…
Reference in New Issue