Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.6

Bug #19440 Outdated top level domains list
Submitted: 2012-05-28 07:23 UTC
From: midget Assigned:
Status: Feedback Package: Validate (version 0.8.5)
PHP Version: Irrelevant OS: Debian GNU/Linux
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 - 17 = ?

 
 [2012-05-28 07:23 UTC] midget (Dario Minnucci)
Description: ------------ Validate.php contains a hard-coded list of top-level domains which already misses some entries and will soon probably miss even more entries. Please keep top level domains list up-to-date. Thanks in advance. Regards,

Comments

 [2012-05-29 20:38 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
Feel free to send in a pull request with any you think are missing
 [2012-05-29 20:38 UTC] doconnor (Daniel O'Connor)
Feel free to send in a pull request with any you think are missing
 [2012-05-30 06:03 UTC] midget (Dario Minnucci)
I'll upload some files with up-to-date arrays generated from current IANA's TLD list. Also I'll upload the quick and dirty script I used to create those files. Needs lots of improvement but maybe you can modify it and call it during Validate package build process to get up-to-date arrays on every release. Thanks in advance and sorry for the noise.
 [2012-05-30 06:09 UTC] midget (Dario Minnucci)
Since it's not possible to upload .php files here I'm just the content: arr_ctld.php: // // # version 2012052900, last updated tue may 29 07:07:01 2012 utc // $_ctld = array( 'ac', 'ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'an', 'ao', 'aq', 'ar', 'as', 'at', 'au', 'aw', 'ax', 'az', 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'br', 'bs', 'bt', 'bv', 'bw', 'by', 'bz', 'ca', 'cc', 'cd', 'cf', 'cg', 'ch', 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cu', 'cv', 'cw', 'cx', 'cy', 'cz', 'de', 'dj', 'dk', 'dm', 'do', 'dz', 'ec', 'ee', 'eg', 'er', 'es', 'et', 'eu', 'fi', 'fj', 'fk', 'fm', 'fo', 'fr', 'ga', 'gb', 'gd', 'ge', 'gf', 'gg', 'gh', 'gi', 'gl', 'gm', 'gn', 'gp', 'gq', 'gr', 'gs', 'gt', 'gu', 'gw', 'gy', 'hk', 'hm', 'hn', 'hr', 'ht', 'hu', 'id', 'ie', 'il', 'im', 'in', 'io', 'iq', 'ir', 'is', 'it', 'je', 'jm', 'jo', 'jp', 'ke', 'kg', 'kh', 'ki', 'km', 'kn', 'kp', 'kr', 'kw', 'ky', 'kz', 'la', 'lb', 'lc', 'li', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly', 'ma', 'mc', 'md', 'me', 'mg', 'mh', 'mk', 'ml', 'mm', 'mn', 'mo', 'mp', 'mq', 'mr', 'ms', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz', 'na', 'nc', 'ne', 'nf', 'ng', 'ni', 'nl', 'no', 'np', 'nr', 'nu', 'nz', 'om', 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pm', 'pn', 'pr', 'ps', 'pt', 'pw', 'py', 'qa', 're', 'ro', 'rs', 'ru', 'rw', 'sa', 'sb', 'sc', 'sd', 'se', 'sg', 'sh', 'si', 'sj', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'st', 'su', 'sv', 'sx', 'sy', 'sz', 'tc', 'td', 'tf', 'tg', 'th', 'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tp', 'tr', 'tt', 'tv', 'tw', 'tz', 'ua', 'ug', 'uk', 'us', 'uy', 'uz', 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu', 'wf', 'ws', 'ye', 'yt', 'za', 'zm', 'zw', ); arr_gtld.php: // // # version 2012052900, last updated tue may 29 07:07:01 2012 utc // $_gtld = array( 'aero', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel', 'xxx', ); arr_itld.php: // // # version 2012052900, last updated tue may 29 07:07:01 2012 utc // $_itld = array( 'arpa', 'root', ); arr_stld.php: // // # version 2012052900, last updated tue may 29 07:07:01 2012 utc // $_stld = array( 'xn--0zwm56d', 'xn--11b5bs3a9aj6g', 'xn--3e0b707e', 'xn--45brj9c', 'xn--80akhbyknj4f', 'xn--80ao21a', 'xn--90a3ac', 'xn--9t4b11yi5a', 'xn--clchc0ea0b2g2a9gcd', 'xn--deba0ad', 'xn--fiqs8s', 'xn--fiqz9s', 'xn--fpcrj9c3d', 'xn--fzc2c9e2c', 'xn--g6w251d', 'xn--gecrj9c', 'xn--h2brj9c', 'xn--hgbk6aj7f53bba', 'xn--hlcj6aya9esc7a', 'xn--j6w193g', 'xn--jxalpdlp', 'xn--kgbechtv', 'xn--kprw13d', 'xn--kpry57d', 'xn--lgbbat1ad8j', 'xn--mgbaam7a8h', 'xn--mgbayh7gpa', 'xn--mgbbh1a71e', 'xn--mgbc0a9azcg', 'xn--mgberp4a5d4ar', 'xn--o3cw4h', 'xn--ogbpf8fl', 'xn--p1ai', 'xn--pgbs0dh', 'xn--s9brj9c', 'xn--wgbh1c', 'xn--wgbl6a', 'xn--xkc2al3hye2a', 'xn--xkc2dl3a5ee0h', 'xn--yfro4i67o', 'xn--ygbi2ammx', 'xn--zckzah', );
 [2012-05-30 06:09 UTC] midget (Dario Minnucci)
 [2012-05-30 06:11 UTC] midget (Dario Minnucci)
Script usage: wget -c http://data.iana.org/TLD/tlds-alpha-by-domain.txt && ./build-arr-tlds Regards,
 [2012-07-23 19:44 UTC] midget (Dario Minnucci)
Hi again, Please let me know if you need any other additional feedback in order to re-activate this issue? Thanks in advance. Regards,
 [2018-10-25 15:41 UTC] midget (Dario Minnucci)
The script got missing... You can still find it at: https://paste.debian.net/?show=1048975;lines=0 Download link: https://paste.debian.net/download/1048975 Usage: chmod +x build-arr-tlds.php wget -c http://data.iana.org/TLD/tlds-alpha-by-domain.txt && ./build-arr-tlds.php