Hopefully removed the extra arrows

This commit is contained in:
benjamyn committed 2017-09-25 08:51:44 +10:00
1 parent b5b24a67ce
commit 348ed3a1cc
1 file changed
+8 -5
+8 -5
View File
@@ -134,12 +134,15 @@ def iterate(inArray, pre):
count = 0
while count != len(inArray) - 1:
#print checkIfIP(inArray[count].split('.'))
if checkIfIP(inArray[count].split('.')) == 0:
tmpVal = isCNAME(inArray[count])
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET
else:
if pre == "TXT" or pre == "SOA":
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
else:
if checkIfIP(inArray[count].split('.')) == 0:
tmpVal = isCNAME(inArray[count])
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET
else:
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
count = count + 1