From 0de1da57be524b273ecfc28fbbe36c5c1cd090f3 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Sat, 12 Aug 2017 21:37:28 +1000 Subject: [PATCH] Testing new dig function --- HTTPy.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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])