Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 14283ff

Browse files
authored
Merge pull request #319 from maarten-boot/master
fix test2.py; add rw second levels
2 parents 71db5e9 + e9fc5f8 commit 14283ff

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

test2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/env python3
22

3-
from whoisdomain.main import main
3+
from whois.main import main
44

55
main()

whois/tld_regexpr.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,10 +1175,18 @@
11751175

11761176
# Multiple initialization
11771177
ZZ["ca"] = {"extend": "bank"}
1178-
ZZ["rw"] = {
1179-
"extend": "com",
1180-
"_server": "whois.ricta.org.rw"
1181-
}
1178+
1179+
# Rwanda: https://en.wikipedia.org/wiki/.rw
1180+
ZZ["rw"] = {"extend": "com", "_server": "whois.ricta.org.rw"}
1181+
ZZ[".co.rw"] = {"extend": "rw"}
1182+
ZZ[".org.rw"] = {"extend": "rw"}
1183+
ZZ[".net.rw"] = {"extend": "rw"}
1184+
ZZ[".ac.rw"] = {"extend": "rw"}
1185+
ZZ[".gov.rw"] = {"extend": "rw"}
1186+
ZZ[".mil.rw"] = {"extend": "rw"}
1187+
ZZ[".coop.rw"] = {"extend": "rw"}
1188+
# ZZ[".ltd.rw"] = {"extend": "rw"} # unclear, no longer in https://publicsuffix.org/list/public_suffix_list.dat 2023-06-27 mboot
1189+
11821190
ZZ["mu"] = {"extend": "bank"}
11831191
ZZ["mu"] = {"extend": "bank"}
11841192

0 commit comments

Comments
 (0)