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