Fixed MX Iterate

This commit is contained in:
Benjamyn Love 2017-09-25 08:40:07 +10:00
parent c784deb997
commit c83973b163

View File

@ -147,12 +147,8 @@ def iterateMX(inArray, pre):
count = 0
while count != len(inArray) - 1:
tmp = inArray[count].split(' ')
if checkIfIP(tmp.split('.')) == 0:
tmpVal = isCNAME(tmp[1])
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + " -> " + tmpVal[0] + bcolors.RESET
else:
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
tmpVal = isCNAME(tmp[1])
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + " -> " + tmpVal[0] + bcolors.RESET
count = count + 1
def parseWhois(whioisInfo):