ListHostRecords - gamesharkmike/PyNamecheap GitHub Wiki

home

ToDo: Sort these results
Use {} string formatter
hosts = api.domains_dns_getHosts(domain)
LIST = []
for host in hosts:
    LIST.append("{} ({})".format(host['Name'], host["Address"]) )
print(" ,".join(LIST))