Skip to content

Commit

Permalink
[FIX] Changing API endpoint to the IANA one
Browse files Browse the repository at this point in the history
  • Loading branch information
altf4arnold committed May 18, 2024
1 parent a545ecc commit b0533a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tldtester/sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def grabber(data, rdaptlds):
print(tld + " DNSSEC " + e)
algo = 300
# Who registers the thing and get unicode
rdap = urllib.request.urlopen("https://root.rdap.org/domain/" + tld)
rdap = urllib.request.urlopen("https://rdap.iana.org/domain/" + tld)
if rdap.getcode() == 200:
raw = rdap.read().decode("utf-8")
data = json.loads(raw)
Expand All @@ -158,6 +158,8 @@ def grabber(data, rdaptlds):
organisation = "Reserved"
try:
link = data["links"][0]["href"]
if "rdap" in link:
link = "https://icannwiki.org/." + tld
except Exception as e:
print("link not found for " + tld)
print(e)
Expand Down

0 comments on commit b0533a4

Please sign in to comment.