Added record to dig, hopefully

This commit is contained in:
benjamyn committed 2017-06-02 09:05:37 +10:00
1 parent 3e5c382e40
commit ed7ebeab01
1 file changed
+6 -1
+6 -1
View File
@@ -18,6 +18,11 @@ def iterate(inArray):
print count, inArray[count]
count = count + 1
def iterate(inArray, rec):
count = 0
while count != len(inArray) - 1:
print rec, inArray[count]
count = count + 1
def whois(inDomain):
lookup = subprocess.check_output(["whois", inDomain])
@@ -30,7 +35,7 @@ def dig(inDomain, record):
print "========================================================" #ADD REST OF DIGS
test = dig.split("\n")
#print record, test[0]
iterate(test) #fix up mutiple record types...
iterate(test, record) #fix up mutiple record types...
def ipLookup(inDomain):
host = "N/A"