Added record to dig, hopefully
This commit is contained in:
parent
3e5c382e40
commit
ed7ebeab01
7
HTTPy.py
7
HTTPy.py
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user