Test plz ignore

This commit is contained in:
Benjamyn Love 2017-08-16 10:02:45 +10:00
parent d6772d83a9
commit 2b5ad0ba3e

View File

@ -175,7 +175,7 @@ def dig(inDomain, record):
iterate(test, record)
return test
def newdig(inDomain, record):
def newdig(inDomain, record, ""):
try:
dig = subprocess.check_output(["dig", record, "+short", inDomain])
except Exception as e:
@ -184,7 +184,7 @@ def newdig(inDomain, record):
print "========================================================"
test = dig.split("\n")
#iterate(test, record)
return test, record
return test, record, sub
def ipLookup(inDomain):
host = "N/A"
@ -255,5 +255,5 @@ while running == 1:
for sub in sub2check:
if sub != "":
tmpDom = sub + "." + inInput
subRec, subType = newdig(tmpDom, "A")
iterate(subRec, subType)
subRec, subType, test = newdig(tmpDom, "A", sub)
iterate(test, subType)