diff --git a/HTTPy.py b/HTTPy.py index d8b4dc0..beb8213 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -143,6 +143,17 @@ def dig(inDomain, record): iterate(test, record) return test +def newdig(inDomain, record): + try: + dig = subprocess.check_output(["dig", record, "+short", inDomain]) + except Exception as e: + dig = "error" + print str(e) + print "========================================================" + test = dig.split("\n") + #iterate(test, record) + return test, record + def ipLookup(inDomain): host = "N/A" ipLook = subprocess.check_output(["geoiplookup", inDomain])