Remove UPERCASE and duplicate entry on some list

This commit is contained in:
Dryusdan 2022-06-24 16:01:42 +02:00
parent 7a3e7b78a5
commit aafd26a7a8
1 changed files with 3 additions and 3 deletions

View File

@ -39,10 +39,10 @@ def get_whois_nsname(zone):
ns_server = []
for record in records["name_servers"]:
if not record.endswith('.'):
ns_server.append(f"{record}.")
ns_server.append(f"{record.lower()}.")
else:
ns_server.append(f"{record}")
return ns_server
ns_server.append(f"{record.lower()}")
return list(dict.fromkeys(ns_server))
if __name__ == '__main__':