Article View: linux.debian.bugs.dist
Article #7103Bug#1156099: libnet-domain-tld-perl: differences to ICANN
From: Matt Taggart
Date: Wed, 02 Dec 2026 00:30
Date: Wed, 02 Dec 2026 00:30
40 lines
3062 bytes
3062 bytes
Package: libnet-domain-tld-perl
Version: 1.75-4
Severity: wishlist
Hi,
I use Net::Domain::TLD via Email::Valid and it's handy. But I noticed it
hasn't gotten an upstream update lately and I found myself wondering if
there have been new TLDs added it doesn't know about. I do see the
debian package has added some when people notice. But I wanted to see
how it compared to ICANN. So I came up with the following (rough) process:
# Get the ICANN list
curl https://data.iana.org/TLD/tlds-alpha-by-domain.txt
# Get the debian TLD.pm
curl https://salsa.debian.org/perl-team/modules/packages/libnet-domain-tld-perl/-/raw/master/lib/Net/Domain/TLD.pm
# extract the TLDs, uppercase, sort and uniq
grep ' => q' TLD.pm |awk -F\' '{print $2}' |tr [:lower:] [:upper:] |sort -u >TLS.upper
# List those things only in ICANN
comm -13 TLD.upper tlds-alpha-by-domain.txt > only-ICANN
# List those things only in TLD.pm
comm -23 TLD.upper tlds-alpha-by-domain.txt > only-TLDpm
It does OK, but can't handle some things. But it does reveal quite a few
things that are only in one or the other. A good diff tool helps too.
For things in ICANN and not in TLD.pm, could they be added? Or if there
is a reason to not add then document why they don't include it.
For things in TLD.pm and not in ICANN, could the reason be documented (or
removed if it now longer makes sense to have them)?
I guess it would also be nice if this was done upstream as well, rather
than just in the debian package, if that was somehow possible.
Thanks,
--
Matt Taggart
taggart@riseup.net
Technical Details
Message-ID:
<O5Gop-fren-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Matt Taggart <taggart@riseup.net> Newsgroups: linux.debian.bugs.dist Subject: Bug#1156099: libnet-domain-tld-perl: differences to ICANN Date: Wed, 02 Dec 2026 01:30:01 +0100 Message-ID: <O5Gop-fren-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Dec 2 00:23:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Matt Taggart <taggart@riseup.net>, 1156099@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-perl-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: report 1156099 X-Debian-Pr-Package: libnet-domain-tld-perl X-Debian-Pr-Source: libnet-domain-tld-perl X-Riseup-User-ID: 81FA53BA4E4B9898C34F904D8B765006C7AE55A6B9B9B7712D5BFC357813098A MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006424 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 1 Dec 2026 16:20:52 -0800 X-Original-Message-ID: <aw9kZLixeQANvKMt@zorak.home.bogus>