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

Commit 43f5b35

Browse files
committed
add nic to default test group for makeTestdataAll.sh; add net.tr and tr (privateReg), onl, blue, garden, promo, one; fix tokyo, add sy
1 parent d4c6cf5 commit 43f5b35

File tree

5 files changed

+34
-13
lines changed

5 files changed

+34
-13
lines changed

DONE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ DONE
3535

3636
- add tld st, so, nrw, lat, so , realestate, ph, com.ph, org.ph, net.ph, zm
3737

38+
- fix tokyo, it needs a explicit server, add sy it has a whois server but i cannot get it to answer, set to privateReg
39+
- add net.tr and tr (privateReg), onl, blue, garden, promo, one,
40+
41+
- add nic to default test group for makeTestdataAll.sh
42+

makeTestdataAll.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ domainsToTry()
170170

171171
[ "$domain" = "__DEFAULT__" ] && {
172172
cat <<! |
173+
nic
173174
meta
174175
google
175176
!

testdata/google.com/input

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ Tech Organization: Google LLC
3131
Tech State/Province: CA
3232
Tech Country: US
3333
Tech Email: Select Request Email Form at https://domains.markmonitor.com/whois/google.com
34-
Name Server: ns2.google.com
34+
Name Server: ns4.google.com
3535
Name Server: ns3.google.com
3636
Name Server: ns1.google.com
37-
Name Server: ns4.google.com
37+
Name Server: ns2.google.com
3838
DNSSEC: unsigned
3939
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
40-
>>> Last update of WHOIS database: 2022-11-17T10:39:21+0000 <<<
40+
>>> Last update of WHOIS database: 2022-11-17T22:52:22+0000 <<<
4141

4242
For more information on WHOIS status codes, please visit:
4343
https://www.icann.org/resources/pages/epp-status-codes

whois/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
".com.tr": "com_tr",
8181
".edu.tr": "edu_tr",
8282
".org.tr": "org_tr",
83+
".net.tr": "net_tr",
8384
#
8485
".edu.ua": "edu_ua",
8586
".lviv.ua": "lviv_ua",
@@ -113,6 +114,7 @@
113114

114115
Utf8Map = {
115116
".xn--p1ai": "ru_rf",
117+
".xn--p1acf": "pyc_", # .РУС
116118
}
117119

118120

whois/tld_regexpr.py

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@
290290
"extend": "com_tr",
291291
}
292292

293+
net_tr = {
294+
"extend": "com_tr",
295+
}
296+
293297
co_il = {
294298
"extend": "com",
295299
"domain_name": r"domain:\s*(.+)",
@@ -1023,6 +1027,7 @@
10231027

10241028
tokyo = {
10251029
"extend": "com",
1030+
"_server": "whois.nic.tokyo",
10261031
}
10271032

10281033
top = {
@@ -1983,28 +1988,36 @@
19831988
gd = {"extend": "com"}
19841989
mn = {"extend": "com"}
19851990
tl = {"extend": "com"}
1986-
gay = { "extend": "com", "_server": "whois.nic.gay" }
1991+
gay = {"extend": "com", "_server": "whois.nic.gay"}
19871992
tt = {"extend": "_privateReg"}
19881993
mo = {
19891994
"extend": "com",
19901995
"creation_date": r"created on\s+(.+)",
19911996
"expiration_date": r"expires on\s+(.+)",
19921997
"name_servers": r"Domain name servers:\s*\-+(?:\s*(\S+)\n)(?:\s*(\S+)\n)?(?:\s*(\S+)\n)?(?:\s*(\S+)\n)?",
19931998
}
1994-
com_mo = { "extend": "mo"}
1999+
com_mo = {"extend": "mo"}
19952000
st = {
19962001
# .ST domains can now be registered with many different competing registrars. and hence different formats
2002+
# >>> line appears quite early, valid info after would have been suppressed with the ^>>> cleanup rule: switched off
19972003
"extend": "com",
19982004
"registrant_country": r"registrant-country:\s+(\S+)",
19992005
"registrant": r"registrant-organi(?:s|z)ation:\s*(.+)\r?\n",
20002006
}
2001-
so = { "extend": "com" }
2002-
nrw = { "extend": "com" }
2003-
lat = { "extend": "com" }
2004-
realestate = { "_server": "whois.nic.realestate", "extend": "com" }
2007+
so = {"extend": "com"}
2008+
nrw = {"extend": "com"}
2009+
lat = {"extend": "com"}
2010+
realestate = {"_server": "whois.nic.realestate", "extend": "com"}
20052011
ph = {"extend": "_privateReg"}
20062012
com_ph = {"extend": "ph"}
2007-
org_ph= {"extend": "ph"}
2008-
net_ph= {"extend": "ph"}
2009-
zm = { "extend": "com" }
2010-
2013+
org_ph = {"extend": "ph"}
2014+
net_ph = {"extend": "ph"}
2015+
zm = {"extend": "com"}
2016+
sy = {"extend": "_privateReg", "_server": "whois.tld.sy"}
2017+
tr = {"extend": "_privateReg"}
2018+
onl = {"extend": "com"}
2019+
blue = {"extend": "com"}
2020+
garden = {"extend": "com", "_server": "whois.nic.garden"}
2021+
promo = {"extend": "com", "_server": "whois.nic.promo"}
2022+
one = {"extend": "com"}
2023+
pyc_ = {"extend": "com"}

0 commit comments

Comments
 (0)