From 1c7ba2dcaaffd8c56f1b58acb6cf642065cca3ff Mon Sep 17 00:00:00 2001 From: nandgator <38415384+nandgator@users.noreply.github.com> Date: Thu, 22 Oct 2026 07:53:43 +0530 Subject: [PATCH] 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). --- src/validators/_tld.txt | 17 +++-------------- tests/test_domain.py | 4 ++++ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/validators/_tld.txt b/src/validators/_tld.txt index 00e543b2..dde9404e 100644 --- a/src/validators/_tld.txt +++ b/src/validators/_tld.txt @@ -1,4 +1,4 @@ -# Version 2024052400, Last Updated Fri May 24 07:07:01 2024 UTC +# Version 2026102100, Last Updated Wed Oct 21 07:07:01 2026 UTC AAA AARP ABB @@ -118,7 +118,6 @@ BE BEATS BEAUTY BEER -BENTLEY BERLIN BEST BESTBUY @@ -297,7 +296,6 @@ CY CYMRU CYOU CZ -DABUR DAD DANCE DATA @@ -346,7 +344,6 @@ DOWNLOAD DRIVE DTV DUBAI -DUNLOP DUPONT DURBAN DVAG @@ -489,7 +486,6 @@ GODADDY GOLD GOLDPOINT GOLF -GOO GOODYEAR GOOG GOOGLE @@ -623,12 +619,10 @@ JP JPMORGAN JPRS JUEGOS -JUNIPER KAUFEN KDDI KE KERRYHOTELS -KERRYLOGISTICS KERRYPROPERTIES KFH KG @@ -660,7 +654,6 @@ LA LACAIXA LAMBORGHINI LAMER -LANCASTER LAND LANDROVER LANXESS @@ -692,7 +685,6 @@ LIMITED LIMO LINCOLN LINK -LIPSY LIVE LIVING LK @@ -748,6 +740,7 @@ MEME MEMORIAL MEN MENU +MERCK MERCKMSD MG MH @@ -802,7 +795,6 @@ NA NAB NAGOYA NAME -NATURA NAVY NBA NC @@ -918,7 +910,6 @@ POLITIE PORN POST PR -PRAMERICA PRAXI PRESS PRIME @@ -952,7 +943,6 @@ REALTOR REALTY RECIPES RED -REDSTONE REDUMBRELLA REHAB REISE @@ -1039,7 +1029,6 @@ SG SH SHANGRILA SHARP -SHAW SHELL SHIA SHIKSHA @@ -1243,6 +1232,7 @@ WATCH WATCHES WEATHER WEATHERCHANNEL +WEB WEBCAM WEBER WEBSITE @@ -1260,7 +1250,6 @@ WINDOWS WINE WINNERS WME -WOLTERSKLUWER WOODSIDE WORK WORKS diff --git a/tests/test_domain.py b/tests/test_domain.py index c26b2bbf..c3a851c2 100644 --- a/tests/test_domain.py +++ b/tests/test_domain.py @@ -47,6 +47,8 @@ def test_returns_true_on_valid_domain(value: str, rfc_1034: bool, rfc_2782: bool ("example_.com", True, False, True), ("somerandomexample.xn--fiqs8s", True, False, False), ("somerandomexample.onion", True, False, False), + # delegated 2026-07-23 + ("somerandomexample.web", True, False, False), ], ) 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, ("_example.#13", True, False, True), ("example_.fo-ul", True, False, True), ("somerandomexample.xn-n-fiqs8s", True, False, False), + # retired from the root zone + ("somerandomexample.goo", True, False, False), ], ) def test_returns_failed_validation_invalid_top_level_domain(