Skip to content

Commit 705f72d

Browse files
committed
chore: update the IANA TLD list to version 2026102100
_tld.txt was last refreshed from the IANA list in May 2024 (version 2024052400). Since then 13 TLDs have been retired from the root zone and .merck and .web have been delegated, so consider_tld accepted names under retired TLDs and rejected names under the new ones. Replace it with https://data.iana.org/TLD/tlds-alpha-by-domain.txt, version 2026102100 (md5 275d627bb5615a6049fd0282962448a5, matching the published checksum).
1 parent ce8ada1 commit 705f72d

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

‎src/validators/_tld.txt‎

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version 2024052400, Last Updated Fri May 24 07:07:01 2024 UTC
1+
# Version 2026102100, Last Updated Wed Oct 21 07:07:01 2026 UTC
22
AAA
33
AARP
44
ABB
@@ -118,7 +118,6 @@ BE
118118
BEATS
119119
BEAUTY
120120
BEER
121-
BENTLEY
122121
BERLIN
123122
BEST
124123
BESTBUY
@@ -297,7 +296,6 @@ CY
297296
CYMRU
298297
CYOU
299298
CZ
300-
DABUR
301299
DAD
302300
DANCE
303301
DATA
@@ -346,7 +344,6 @@ DOWNLOAD
346344
DRIVE
347345
DTV
348346
DUBAI
349-
DUNLOP
350347
DUPONT
351348
DURBAN
352349
DVAG
@@ -489,7 +486,6 @@ GODADDY
489486
GOLD
490487
GOLDPOINT
491488
GOLF
492-
GOO
493489
GOODYEAR
494490
GOOG
495491
GOOGLE
@@ -623,12 +619,10 @@ JP
623619
JPMORGAN
624620
JPRS
625621
JUEGOS
626-
JUNIPER
627622
KAUFEN
628623
KDDI
629624
KE
630625
KERRYHOTELS
631-
KERRYLOGISTICS
632626
KERRYPROPERTIES
633627
KFH
634628
KG
@@ -660,7 +654,6 @@ LA
660654
LACAIXA
661655
LAMBORGHINI
662656
LAMER
663-
LANCASTER
664657
LAND
665658
LANDROVER
666659
LANXESS
@@ -692,7 +685,6 @@ LIMITED
692685
LIMO
693686
LINCOLN
694687
LINK
695-
LIPSY
696688
LIVE
697689
LIVING
698690
LK
@@ -748,6 +740,7 @@ MEME
748740
MEMORIAL
749741
MEN
750742
MENU
743+
MERCK
751744
MERCKMSD
752745
MG
753746
MH
@@ -802,7 +795,6 @@ NA
802795
NAB
803796
NAGOYA
804797
NAME
805-
NATURA
806798
NAVY
807799
NBA
808800
NC
@@ -918,7 +910,6 @@ POLITIE
918910
PORN
919911
POST
920912
PR
921-
PRAMERICA
922913
PRAXI
923914
PRESS
924915
PRIME
@@ -952,7 +943,6 @@ REALTOR
952943
REALTY
953944
RECIPES
954945
RED
955-
REDSTONE
956946
REDUMBRELLA
957947
REHAB
958948
REISE
@@ -1039,7 +1029,6 @@ SG
10391029
SH
10401030
SHANGRILA
10411031
SHARP
1042-
SHAW
10431032
SHELL
10441033
SHIA
10451034
SHIKSHA
@@ -1243,6 +1232,7 @@ WATCH
12431232
WATCHES
12441233
WEATHER
12451234
WEATHERCHANNEL
1235+
WEB
12461236
WEBCAM
12471237
WEBER
12481238
WEBSITE
@@ -1260,7 +1250,6 @@ WINDOWS
12601250
WINE
12611251
WINNERS
12621252
WME
1263-
WOLTERSKLUWER
12641253
WOODSIDE
12651254
WORK
12661255
WORKS

‎tests/test_domain.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def test_returns_true_on_valid_domain(value: str, rfc_1034: bool, rfc_2782: bool
4747
("example_.com", True, False, True),
4848
("somerandomexample.xn--fiqs8s", True, False, False),
4949
("somerandomexample.onion", True, False, False),
50+
# delegated 2026-07-23
51+
("somerandomexample.web", True, False, False),
5052
],
5153
)
5254
def test_returns_true_on_valid_top_level_domain(
@@ -100,6 +102,8 @@ def test_returns_failed_validation_on_invalid_domain(value: str, rfc_1034: bool,
100102
("_example.#13", True, False, True),
101103
("example_.fo-ul", True, False, True),
102104
("somerandomexample.xn-n-fiqs8s", True, False, False),
105+
# retired from the root zone
106+
("somerandomexample.goo", True, False, False),
103107
],
104108
)
105109
def test_returns_failed_validation_invalid_top_level_domain(

0 commit comments

Comments
 (0)