This commit is contained in:
Benjamyn Love 2017-06-02 02:41:14 +10:00
parent 73c61843e6
commit a656b66710

View File

@ -36,6 +36,7 @@ def dig(inDomain, record):
print len(test) #fix up mutiple record types... print len(test) #fix up mutiple record types...
def ipLookup(inDomain): def ipLookup(inDomain):
host = "N/A"
ipLook = subprocess.check_output(["geoiplookup", inDomain]) ipLook = subprocess.check_output(["geoiplookup", inDomain])
try: try:
host = subprocess.check_output(["host", inDomain]) #Do exit status check... host = subprocess.check_output(["host", inDomain]) #Do exit status check...