From 2b5ad0ba3e55a1e65c605232fffb537f02a6dcc7 Mon Sep 17 00:00:00 2001 From: Benjamyn Date: Wed, 16 Aug 2017 10:02:45 +1000 Subject: [PATCH] Test plz ignore --- HTTPy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 034b501..e4521df 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -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) \ No newline at end of file + subRec, subType, test = newdig(tmpDom, "A", sub) + iterate(test, subType) \ No newline at end of file