001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.openstreetmap.josm.data.validation.routines;
018
019import java.net.IDN;
020import java.util.Arrays;
021import java.util.Locale;
022import java.util.stream.IntStream;
023
024import org.openstreetmap.josm.tools.Logging;
025
026/**
027 * <p><b>Domain name</b> validation routines.</p>
028 *
029 * <p>
030 * This validator provides methods for validating Internet domain names
031 * and top-level domains.
032 * </p>
033 *
034 * <p>Domain names are evaluated according
035 * to the standards <a href="http://www.ietf.org/rfc/rfc1034.txt">RFC1034</a>,
036 * section 3, and <a href="http://www.ietf.org/rfc/rfc1123.txt">RFC1123</a>,
037 * section 2.1. No accommodation is provided for the specialized needs of
038 * other applications; if the domain name has been URL-encoded, for example,
039 * validation will fail even though the equivalent plaintext version of the
040 * same name would have passed.
041 * </p>
042 *
043 * <p>
044 * Validation is also provided for top-level domains (TLDs) as defined and
045 * maintained by the Internet Assigned Numbers Authority (IANA):
046 * </p>
047 *
048 *   <ul>
049 *     <li>{@link #isValidInfrastructureTld} - validates infrastructure TLDs
050 *         (<code>.arpa</code>, etc.)</li>
051 *     <li>{@link #isValidGenericTld} - validates generic TLDs
052 *         (<code>.com, .org</code>, etc.)</li>
053 *     <li>{@link #isValidCountryCodeTld} - validates country code TLDs
054 *         (<code>.us, .uk, .cn</code>, etc.)</li>
055 *   </ul>
056 *
057 * <p>
058 * (<b>NOTE</b>: This class does not provide IP address lookup for domain names or
059 * methods to ensure that a given domain name matches a specific IP; see
060 * {@link java.net.InetAddress} for that functionality.)
061 * </p>
062 *
063 * @version $Revision: 1740822 $
064 * @since Validator 1.4
065 */
066public final class DomainValidator extends AbstractValidator {
067
068    private static final int MAX_DOMAIN_LENGTH = 253;
069
070    private static final String[] EMPTY_STRING_ARRAY = new String[0];
071
072    // Regular expression strings for hostnames (derived from RFC2396 and RFC 1123)
073
074    // RFC2396: domainlabel   = alphanum | alphanum *( alphanum | "-" ) alphanum
075    // Max 63 characters
076    private static final String DOMAIN_LABEL_REGEX = "\\p{Alnum}(?>[\\p{Alnum}-]{0,61}\\p{Alnum})?";
077
078    // RFC2396 toplabel = alpha | alpha *( alphanum | "-" ) alphanum
079    // Max 63 characters
080    private static final String TOP_LABEL_REGEX = "\\p{Alpha}(?>[\\p{Alnum}-]{0,61}\\p{Alnum})?";
081
082    // RFC2396 hostname = *( domainlabel "." ) toplabel [ "." ]
083    // Note that the regex currently requires both a domain label and a top level label, whereas
084    // the RFC does not. This is because the regex is used to detect if a TLD is present.
085    // If the match fails, input is checked against DOMAIN_LABEL_REGEX (hostnameRegex)
086    // RFC1123 sec 2.1 allows hostnames to start with a digit
087    private static final String DOMAIN_NAME_REGEX =
088            "^(?:" + DOMAIN_LABEL_REGEX + "\\.)+" + "(" + TOP_LABEL_REGEX + ")\\.?$";
089
090    private final boolean allowLocal;
091
092    /**
093     * Singleton instance of this validator, which
094     *  doesn't consider local addresses as valid.
095     */
096    private static final DomainValidator DOMAIN_VALIDATOR = new DomainValidator(false);
097
098    /**
099     * Singleton instance of this validator, which does
100     *  consider local addresses valid.
101     */
102    private static final DomainValidator DOMAIN_VALIDATOR_WITH_LOCAL = new DomainValidator(true);
103
104    /**
105     * RegexValidator for matching domains.
106     */
107    private final RegexValidator domainRegex =
108            new RegexValidator(DOMAIN_NAME_REGEX);
109    /**
110     * RegexValidator for matching a local hostname
111     */
112    // RFC1123 sec 2.1 allows hostnames to start with a digit
113    private final RegexValidator hostnameRegex =
114            new RegexValidator(DOMAIN_LABEL_REGEX);
115
116    /**
117     * Returns the singleton instance of this validator. It
118     *  will not consider local addresses as valid.
119     * @return the singleton instance of this validator
120     */
121    public static synchronized DomainValidator getInstance() {
122        inUse = true;
123        return DOMAIN_VALIDATOR;
124    }
125
126    /**
127     * Returns the singleton instance of this validator,
128     *  with local validation as required.
129     * @param allowLocal Should local addresses be considered valid?
130     * @return the singleton instance of this validator
131     */
132    public static synchronized DomainValidator getInstance(boolean allowLocal) {
133        inUse = true;
134        if (allowLocal) {
135            return DOMAIN_VALIDATOR_WITH_LOCAL;
136        }
137        return DOMAIN_VALIDATOR;
138    }
139
140    /**
141     * Private constructor.
142     * @param allowLocal whether to allow local domains
143     */
144    private DomainValidator(boolean allowLocal) {
145        this.allowLocal = allowLocal;
146    }
147
148    /**
149     * Returns true if the specified <code>String</code> parses
150     * as a valid domain name with a recognized top-level domain.
151     * The parsing is case-insensitive.
152     * @param domain the parameter to check for domain name syntax
153     * @return true if the parameter is a valid domain name
154     */
155    @Override
156    public boolean isValid(String domain) {
157        if (domain == null) {
158            return false;
159        }
160        String asciiDomain = unicodeToASCII(domain);
161        // hosts must be equally reachable via punycode and Unicode
162        // Unicode is never shorter than punycode, so check punycode
163        // if domain did not convert, then it will be caught by ASCII
164        // checks in the regexes below
165        if (asciiDomain.length() > MAX_DOMAIN_LENGTH) {
166            return false;
167        }
168        String[] groups = domainRegex.match(asciiDomain);
169        if (groups != null && groups.length > 0) {
170            return isValidTld(groups[0]);
171        }
172        return allowLocal && hostnameRegex.isValid(asciiDomain);
173    }
174
175    @Override
176    public String getValidatorName() {
177        return null;
178    }
179
180    // package protected for unit test access
181    // must agree with isValid() above
182    boolean isValidDomainSyntax(String domain) {
183        if (domain == null) {
184            return false;
185        }
186        String asciiDomain = unicodeToASCII(domain);
187        // hosts must be equally reachable via punycode and Unicode
188        // Unicode is never shorter than punycode, so check punycode
189        // if domain did not convert, then it will be caught by ASCII
190        // checks in the regexes below
191        if (asciiDomain.length() > MAX_DOMAIN_LENGTH) {
192            return false;
193        }
194        String[] groups = domainRegex.match(asciiDomain);
195        return (groups != null && groups.length > 0)
196                || hostnameRegex.isValid(asciiDomain);
197    }
198
199    /**
200     * Returns true if the specified <code>String</code> matches any
201     * IANA-defined top-level domain. Leading dots are ignored if present.
202     * The search is case-insensitive.
203     * @param tld the parameter to check for TLD status, not null
204     * @return true if the parameter is a TLD
205     */
206    public boolean isValidTld(String tld) {
207        String asciiTld = unicodeToASCII(tld);
208        if (allowLocal && isValidLocalTld(asciiTld)) {
209            return true;
210        }
211        return isValidInfrastructureTld(asciiTld)
212                || isValidGenericTld(asciiTld)
213                || isValidCountryCodeTld(asciiTld);
214    }
215
216    /**
217     * Returns true if the specified <code>String</code> matches any
218     * IANA-defined infrastructure top-level domain. Leading dots are
219     * ignored if present. The search is case-insensitive.
220     * @param iTld the parameter to check for infrastructure TLD status, not null
221     * @return true if the parameter is an infrastructure TLD
222     */
223    public boolean isValidInfrastructureTld(String iTld) {
224        if (iTld == null) return false;
225        final String key = chompLeadingDot(unicodeToASCII(iTld).toLowerCase(Locale.ENGLISH));
226        return arrayContains(INFRASTRUCTURE_TLDS, key);
227    }
228
229    /**
230     * Returns true if the specified <code>String</code> matches any
231     * IANA-defined generic top-level domain. Leading dots are ignored
232     * if present. The search is case-insensitive.
233     * @param gTld the parameter to check for generic TLD status, not null
234     * @return true if the parameter is a generic TLD
235     */
236    public boolean isValidGenericTld(String gTld) {
237        if (gTld == null) return false;
238        final String key = chompLeadingDot(unicodeToASCII(gTld).toLowerCase(Locale.ENGLISH));
239        return (arrayContains(GENERIC_TLDS, key) || arrayContains(genericTLDsPlus, key))
240                && !arrayContains(genericTLDsMinus, key);
241    }
242
243    /**
244     * Returns true if the specified <code>String</code> matches any
245     * IANA-defined country code top-level domain. Leading dots are
246     * ignored if present. The search is case-insensitive.
247     * @param ccTld the parameter to check for country code TLD status, not null
248     * @return true if the parameter is a country code TLD
249     */
250    public boolean isValidCountryCodeTld(String ccTld) {
251        if (ccTld == null) return false;
252        final String key = chompLeadingDot(unicodeToASCII(ccTld).toLowerCase(Locale.ENGLISH));
253        return (arrayContains(COUNTRY_CODE_TLDS, key) || arrayContains(countryCodeTLDsPlus, key))
254                && !arrayContains(countryCodeTLDsMinus, key);
255    }
256
257    /**
258     * Returns true if the specified <code>String</code> matches any
259     * widely used "local" domains (localhost or localdomain). Leading dots are
260     * ignored if present. The search is case-insensitive.
261     * @param lTld the parameter to check for local TLD status, not null
262     * @return true if the parameter is an local TLD
263     */
264    public boolean isValidLocalTld(String lTld) {
265        if (lTld == null) return false;
266        final String key = chompLeadingDot(unicodeToASCII(lTld).toLowerCase(Locale.ENGLISH));
267        return arrayContains(LOCAL_TLDS, key);
268    }
269
270    private static String chompLeadingDot(String str) {
271        if (str.startsWith(".")) {
272            return str.substring(1);
273        }
274        return str;
275    }
276
277    // ---------------------------------------------
278    // ----- TLDs defined by IANA
279    // ----- Authoritative and comprehensive list at:
280    // ----- http://data.iana.org/TLD/tlds-alpha-by-domain.txt
281
282    // Note that the above list is in UPPER case.
283    // The code currently converts strings to lower case (as per the tables below)
284
285    // IANA also provide an HTML list at http://www.iana.org/domains/root/db
286    // Note that this contains several country code entries which are NOT in
287    // the text file. These all have the "Not assigned" in the "Sponsoring Organisation" column
288    // For example (as of 2015-01-02):
289    // .bl  country-code    Not assigned
290    // .um  country-code    Not assigned
291
292    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
293    private static final String[] INFRASTRUCTURE_TLDS = {
294        "arpa",               // internet infrastructure
295    };
296
297    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
298    private static final String[] GENERIC_TLDS = {
299        // Taken from Version 2026112503, Last Updated Thu Nov 26 07:07:01 2026 UTC
300        "aaa", // aaa American Automobile Association, Inc.
301        "aarp", // aarp AARP
302        "abb", // abb ABB Ltd
303        "abbott", // abbott Abbott Laboratories, Inc.
304        "abbvie", // abbvie AbbVie Inc.
305        "abc", // abc Disney Enterprises, Inc.
306        "able", // able Able Inc.
307        "abogado", // abogado Registry Services, LLC
308        "abudhabi", // abudhabi Abu Dhabi Systems and Information Centre
309        "academy", // academy Binky Moon, LLC
310        "accenture", // accenture Accenture plc
311        "accountant", // accountant dot Accountant Limited
312        "accountants", // accountants Binky Moon, LLC
313        "aco", // aco ACO Severin Ahlmann GmbH & Co. KG
314        "actor", // actor Dog Beach, LLC
315        "ads", // ads Charleston Road Registry Inc.
316        "adult", // adult ICM Registry AD LLC
317        "aeg", // aeg Aktiebolaget Electrolux
318        "aero", // aero Societe Internationale de Telecommunications Aeronautique (SITA INC USA)
319        "aetna", // aetna Aetna Life Insurance Company
320        "afl", // afl Australian Football League
321        "africa", // africa ZA Central Registry NPC trading as Registry.Africa
322        "agakhan", // agakhan Fondation Aga Khan (Aga Khan Foundation)
323        "agency", // agency Binky Moon, LLC
324        "aig", // aig American International Group, Inc.
325        "airbus", // airbus Airbus S.A.S.
326        "airforce", // airforce Dog Beach, LLC
327        "airtel", // airtel Bharti Airtel Limited
328        "akdn", // akdn Fondation Aga Khan (Aga Khan Foundation)
329        "alibaba", // alibaba Alibaba Group Holding Limited
330        "alipay", // alipay Alibaba Group Holding Limited
331        "allfinanz", // allfinanz Allfinanz Deutsche Vermögensberatung Aktiengesellschaft
332        "allstate", // allstate Allstate Fire and Casualty Insurance Company
333        "ally", // ally Ally Financial Inc.
334        "alsace", // alsace REGION GRAND EST
335        "alstom", // alstom ALSTOM
336        "amazon", // amazon Amazon Registry Services, Inc.
337        "americanexpress", // americanexpress American Express Travel Related Services Company, Inc.
338        "americanfamily", // americanfamily AmFam, Inc.
339        "amex", // amex American Express Travel Related Services Company, Inc.
340        "amfam", // amfam AmFam, Inc.
341        "amica", // amica Amica Mutual Insurance Company
342        "amsterdam", // amsterdam Gemeente Amsterdam
343        "analytics", // analytics Campus IP LLC
344        "android", // android Charleston Road Registry Inc.
345        "anquan", // anquan Beijing Qihu Keji Co., Ltd.
346        "anz", // anz Australia and New Zealand Banking Group Limited
347        "aol", // aol AOL Media LLC
348        "apartments", // apartments Binky Moon, LLC
349        "app", // app Charleston Road Registry Inc.
350        "apple", // apple Apple Inc.
351        "aquarelle", // aquarelle Aquarelle.com
352        "arab", // arab League of Arab States
353        "aramco", // aramco Aramco Services Company
354        "archi", // archi Identity Digital Limited
355        "army", // army Dog Beach, LLC
356        "art", // art UK Creative Ideas Limited
357        "arte", // arte Association Relative à la Télévision Européenne G.E.I.E.
358        "asda", // asda Asda Stores Limited
359        "asia", // asia DotAsia Organisation Ltd.
360        "associates", // associates Binky Moon, LLC
361        "athleta", // athleta The Gap, Inc.
362        "attorney", // attorney Dog Beach, LLC
363        "auction", // auction Dog Beach, LLC
364        "audi", // audi AUDI Aktiengesellschaft
365        "audible", // audible Amazon Registry Services, Inc.
366        "audio", // audio XYZ.COM LLC
367        "auspost", // auspost Australian Postal Corporation
368        "author", // author Amazon Registry Services, Inc.
369        "auto", // auto XYZ.COM LLC
370        "autos", // autos XYZ.COM LLC
371        "aws", // aws AWS Registry LLC
372        "axa", // axa AXA Group Operations SAS
373        "azure", // azure Microsoft Corporation
374        "baby", // baby XYZ.COM LLC
375        "baidu", // baidu Baidu, Inc.
376        "banamex", // banamex Citigroup Inc.
377        "band", // band Dog Beach, LLC
378        "bank", // bank fTLD Registry Services, LLC
379        "bar", // bar Punto 2012 Sociedad Anonima Promotora de Inversion de Capital Variable
380        "barcelona", // barcelona Municipi de Barcelona
381        "barclaycard", // barclaycard Barclays Bank PLC
382        "barclays", // barclays Barclays Bank PLC
383        "barefoot", // barefoot Gallo Vineyards, Inc.
384        "bargains", // bargains Binky Moon, LLC
385        "baseball", // baseball MLB Advanced Media DH, LLC
386        "basketball", // basketball Fédération Internationale de Basketball (FIBA)
387        "bauhaus", // bauhaus Werkhaus GmbH
388        "bayern", // bayern Bayern Connect GmbH
389        "bbc", // bbc British Broadcasting Corporation
390        "bbt", // bbt BB&T Corporation
391        "bbva", // bbva BANCO BILBAO VIZCAYA ARGENTARIA, S.A.
392        "bcg", // bcg The Boston Consulting Group, Inc.
393        "bcn", // bcn Municipi de Barcelona
394        "beats", // beats Beats Electronics, LLC
395        "beauty", // beauty XYZ.COM LLC
396        "beer", // beer Registry Services, LLC
397        "berlin", // berlin dotBERLIN GmbH & Co. KG
398        "best", // best BestTLD Pty Ltd
399        "bestbuy", // bestbuy BBY Solutions, Inc.
400        "bet", // bet Identity Digital Limited
401        "bharti", // bharti Bharti Enterprises (Holding) Private Limited
402        "bible", // bible American Bible Society
403        "bid", // bid dot Bid Limited
404        "bike", // bike Binky Moon, LLC
405        "bing", // bing Microsoft Corporation
406        "bingo", // bingo Binky Moon, LLC
407        "bio", // bio Identity Digital Limited
408        "biz", // biz Registry Services, LLC
409        "black", // black Identity Digital Limited
410        "blackfriday", // blackfriday Registry Services, LLC
411        "blockbuster", // blockbuster Dish DBS Corporation
412        "blog", // blog Knock Knock WHOIS There, LLC
413        "bloomberg", // bloomberg Bloomberg IP Holdings LLC
414        "blue", // blue Identity Digital Limited
415        "bms", // bms Bristol-Myers Squibb Company
416        "bmw", // bmw Bayerische Motoren Werke Aktiengesellschaft
417        "bnpparibas", // bnpparibas BNP Paribas
418        "boats", // boats XYZ.COM LLC
419        "boehringer", // boehringer Boehringer Ingelheim International GmbH
420        "bofa", // bofa Bank of America Corporation
421        "bom", // bom Núcleo de Informação e Coordenação do Ponto BR - NIC.br
422        "bond", // bond Shortdot SA
423        "boo", // boo Charleston Road Registry Inc.
424        "book", // book Amazon Registry Services, Inc.
425        "booking", // booking Booking.com B.V.
426        "bosch", // bosch Robert Bosch GMBH
427        "bostik", // bostik Bostik SA
428        "boston", // boston Registry Services, LLC
429        "bot", // bot Amazon Registry Services, Inc.
430        "boutique", // boutique Binky Moon, LLC
431        "box", // box Intercap Registry Inc.
432        "bradesco", // bradesco Banco Bradesco S.A.
433        "bridgestone", // bridgestone Bridgestone Corporation
434        "broadway", // broadway Celebrate Broadway, Inc.
435        "broker", // broker Dog Beach, LLC
436        "brother", // brother Brother Industries, Ltd.
437        "brussels", // brussels DNS.be vzw
438        "build", // build Plan Bee LLC
439        "builders", // builders Binky Moon, LLC
440        "business", // business Binky Moon, LLC
441        "buy", // buy Amazon Registry Services, INC
442        "buzz", // buzz DOTSTRATEGY CO.
443        "bzh", // bzh Association www.bzh
444        "cab", // cab Binky Moon, LLC
445        "cafe", // cafe Binky Moon, LLC
446        "cal", // cal Charleston Road Registry Inc.
447        "call", // call Amazon Registry Services, Inc.
448        "calvinklein", // calvinklein PVH gTLD Holdings LLC
449        "cam", // cam CAM Connecting SarL
450        "camera", // camera Binky Moon, LLC
451        "camp", // camp Binky Moon, LLC
452        "canon", // canon Canon Inc.
453        "capetown", // capetown ZA Central Registry NPC trading as ZA Central Registry
454        "capital", // capital Binky Moon, LLC
455        "capitalone", // capitalone Capital One Financial Corporation
456        "car", // car XYZ.COM LLC
457        "caravan", // caravan Caravan International, Inc.
458        "cards", // cards Binky Moon, LLC
459        "care", // care Binky Moon, LLC
460        "career", // career dotCareer LLC
461        "careers", // careers Binky Moon, LLC
462        "cars", // cars XYZ.COM LLC
463        "casa", // casa Registry Services, LLC
464        "case", // case Digity, LLC
465        "cash", // cash Binky Moon, LLC
466        "casino", // casino Binky Moon, LLC
467        "cat", // cat Fundacio puntCAT
468        "catering", // catering Binky Moon, LLC
469        "catholic", // catholic Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
470        "cba", // cba COMMONWEALTH BANK OF AUSTRALIA
471        "cbn", // cbn The Christian Broadcasting Network, Inc.
472        "cbre", // cbre CBRE, Inc.
473        "center", // center Binky Moon, LLC
474        "ceo", // ceo XYZ.COM LLC
475        "cern", // cern European Organization for Nuclear Research ("CERN")
476        "cfa", // cfa CFA Institute
477        "cfd", // cfd Shortdot SA
478        "chanel", // chanel Chanel International B.V.
479        "channel", // channel Charleston Road Registry Inc.
480        "charity", // charity Public Interest Registry (PIR)
481        "chase", // chase JPMorgan Chase Bank, National Association
482        "chat", // chat Binky Moon, LLC
483        "cheap", // cheap Binky Moon, LLC
484        "chintai", // chintai CHINTAI Corporation
485        "christmas", // christmas XYZ.COM LLC
486        "chrome", // chrome Charleston Road Registry Inc.
487        "church", // church Binky Moon, LLC
488        "cipriani", // cipriani Hotel Cipriani Srl
489        "circle", // circle Jolly Host, LLC
490        "cisco", // cisco Cisco Technology, Inc.
491        "citadel", // citadel Citadel Domain LLC
492        "citi", // citi Citigroup Inc.
493        "citic", // citic CITIC Group Corporation
494        "city", // city Binky Moon, LLC
495        "claims", // claims Binky Moon, LLC
496        "cleaning", // cleaning Binky Moon, LLC
497        "click", // click Waterford Limited
498        "clinic", // clinic Binky Moon, LLC
499        "clinique", // clinique The Estée Lauder Companies Inc.
500        "clothing", // clothing Binky Moon, LLC
501        "cloud", // cloud ARUBA PEC S.p.A.
502        "club", // club Registry Services, LLC
503        "clubmed", // clubmed Club Méditerranée S.A.
504        "coach", // coach Binky Moon, LLC
505        "codes", // codes Binky Moon, LLC
506        "coffee", // coffee Binky Moon, LLC
507        "college", // college XYZ.COM LLC
508        "cologne", // cologne domainworx Service & Management GmbH
509        "com", // com VeriSign Global Registry Services
510        "commbank", // commbank COMMONWEALTH BANK OF AUSTRALIA
511        "community", // community Binky Moon, LLC
512        "company", // company Binky Moon, LLC
513        "compare", // compare Registry Services, LLC
514        "computer", // computer Binky Moon, LLC
515        "comsec", // comsec VeriSign, Inc.
516        "condos", // condos Binky Moon, LLC
517        "construction", // construction Binky Moon, LLC
518        "consulting", // consulting Dog Beach, LLC
519        "contact", // contact Dog Beach, LLC
520        "contractors", // contractors Binky Moon, LLC
521        "cooking", // cooking Registry Services, LLC
522        "cool", // cool Binky Moon, LLC
523        "coop", // coop DotCooperation LLC
524        "corsica", // corsica Collectivité de Corse
525        "country", // country Internet Naming Co.
526        "coupon", // coupon Amazon Registry Services, Inc.
527        "coupons", // coupons Binky Moon, LLC
528        "courses", // courses Registry Services, LLC
529        "cpa", // cpa American Institute of Certified Public Accountants
530        "credit", // credit Binky Moon, LLC
531        "creditcard", // creditcard Binky Moon, LLC
532        "creditunion", // creditunion DotCooperation, LLC
533        "cricket", // cricket dot Cricket Limited
534        "crown", // crown Crown Equipment Corporation
535        "crs", // crs Federated Co-operatives Limited
536        "cruise", // cruise Viking River Cruises (Bermuda) Ltd.
537        "cruises", // cruises Binky Moon, LLC
538        "cuisinella", // cuisinella SCHMIDT GROUPE S.A.S.
539        "cymru", // cymru Nominet UK
540        "cyou", // cyou Shortdot SA
541        "dad", // dad Charleston Road Registry Inc.
542        "dance", // dance Dog Beach, LLC
543        "data", // data Dish DBS Corporation
544        "date", // date dot Date Limited
545        "dating", // dating Binky Moon, LLC
546        "datsun", // datsun NISSAN MOTOR CO., LTD.
547        "day", // day Charleston Road Registry Inc.
548        "dclk", // dclk Charleston Road Registry Inc.
549        "dds", // dds Registry Services, LLC
550        "deal", // deal Amazon Registry Services, Inc.
551        "dealer", // dealer Intercap Registry Inc.
552        "deals", // deals Binky Moon, LLC
553        "degree", // degree Dog Beach, LLC
554        "delivery", // delivery Binky Moon, LLC
555        "dell", // dell Dell Inc.
556        "deloitte", // deloitte Deloitte Touche Tohmatsu
557        "delta", // delta Delta Air Lines, Inc.
558        "democrat", // democrat Dog Beach, LLC
559        "dental", // dental Binky Moon, LLC
560        "dentist", // dentist Dog Beach, LLC
561        "desi", // desi Emergency Back-End Registry Operator Program - ICANN
562        "design", // design Registry Services, LLC
563        "dev", // dev Charleston Road Registry Inc.
564        "dhl", // dhl Deutsche Post AG
565        "diamonds", // diamonds Binky Moon, LLC
566        "diet", // diet XYZ.COM LLC
567        "digital", // digital Binky Moon, LLC
568        "direct", // direct Binky Moon, LLC
569        "directory", // directory Binky Moon, LLC
570        "discount", // discount Binky Moon, LLC
571        "discover", // discover Discover Financial Services
572        "dish", // dish Dish DBS Corporation
573        "diy", // diy Internet Naming Co.
574        "dnp", // dnp Dai Nippon Printing Co., Ltd.
575        "docs", // docs Charleston Road Registry Inc.
576        "doctor", // doctor Binky Moon, LLC
577        "dog", // dog Binky Moon, LLC
578        "domains", // domains Binky Moon, LLC
579        "dot", // dot Dish DBS Corporation
580        "download", // download dot Support Limited
581        "drive", // drive Charleston Road Registry Inc.
582        "dtv", // dtv Dish DBS Corporation
583        "dubai", // dubai Dubai Smart Government Department
584        "dupont", // dupont DuPont Specialty Products USA, LLC
585        "durban", // durban ZA Central Registry NPC trading as ZA Central Registry
586        "dvag", // dvag Deutsche Vermögensberatung Aktiengesellschaft DVAG
587        "dvr", // dvr DISH Technologies L.L.C.
588        "earth", // earth Interlink Systems Innovation Institute K.K.
589        "eat", // eat Charleston Road Registry Inc.
590        "eco", // eco Big Room Inc.
591        "edeka", // edeka EDEKA Verband kaufmännischer Genossenschaften e.V.
592        "edu", // edu EDUCAUSE
593        "education", // education Binky Moon, LLC
594        "email", // email Binky Moon, LLC
595        "emerck", // emerck Merck KGaA
596        "energy", // energy Binky Moon, LLC
597        "engineer", // engineer Dog Beach, LLC
598        "engineering", // engineering Binky Moon, LLC
599        "enterprises", // enterprises Binky Moon, LLC
600        "epson", // epson Seiko Epson Corporation
601        "equipment", // equipment Binky Moon, LLC
602        "ericsson", // ericsson Telefonaktiebolaget L M Ericsson
603        "erni", // erni ERNI Group Holding AG
604        "esq", // esq Charleston Road Registry Inc.
605        "estate", // estate Binky Moon, LLC
606        "eurovision", // eurovision European Broadcasting Union (EBU)
607        "eus", // eus Puntueus Fundazioa
608        "events", // events Binky Moon, LLC
609        "exchange", // exchange Binky Moon, LLC
610        "expert", // expert Binky Moon, LLC
611        "exposed", // exposed Binky Moon, LLC
612        "express", // express Binky Moon, LLC
613        "extraspace", // extraspace Extra Space Storage LLC
614        "fage", // fage Fage International S.A.
615        "fail", // fail Binky Moon, LLC
616        "fairwinds", // fairwinds FairWinds Partners, LLC
617        "faith", // faith dot Faith Limited
618        "family", // family Dog Beach, LLC
619        "fan", // fan Dog Beach, LLC
620        "fans", // fans ZDNS International Limited
621        "farm", // farm Binky Moon, LLC
622        "farmers", // farmers Farmers Insurance Exchange
623        "fashion", // fashion Registry Services, LLC
624        "fast", // fast Amazon Registry Services, Inc.
625        "fedex", // fedex Federal Express Corporation
626        "feedback", // feedback Top Level Spectrum, Inc.
627        "ferrari", // ferrari Fiat Chrysler Automobiles N.V.
628        "ferrero", // ferrero Ferrero Trading Lux S.A.
629        "fidelity", // fidelity Fidelity Brokerage Services LLC
630        "fido", // fido Rogers Communications Canada Inc.
631        "film", // film Motion Picture Domain Registry Pty Ltd
632        "final", // final Núcleo de Informação e Coordenação do Ponto BR - NIC.br
633        "finance", // finance Binky Moon, LLC
634        "financial", // financial Binky Moon, LLC
635        "fire", // fire Amazon Registry Services, Inc.
636        "firestone", // firestone Bridgestone Licensing Services, Inc.
637        "firmdale", // firmdale Firmdale Holdings Limited
638        "fish", // fish Binky Moon, LLC
639        "fishing", // fishing Registry Services, LLC
640        "fit", // fit Registry Services, LLC
641        "fitness", // fitness Binky Moon, LLC
642        "flickr", // flickr Flickr, Inc.
643        "flights", // flights Binky Moon, LLC
644        "flir", // flir FLIR Systems, Inc.
645        "florist", // florist Binky Moon, LLC
646        "flowers", // flowers XYZ.COM LLC
647        "fly", // fly Charleston Road Registry Inc.
648        "foo", // foo Charleston Road Registry Inc.
649        "food", // food Internet Naming Co.
650        "football", // football Binky Moon, LLC
651        "ford", // ford Ford Motor Company
652        "forex", // forex Dog Beach, LLC
653        "forsale", // forsale Dog Beach, LLC
654        "forum", // forum Fegistry, LLC
655        "foundation", // foundation Public Interest Registry (PIR)
656        "fox", // fox FOX Registry, LLC
657        "free", // free Amazon Registry Services, Inc.
658        "fresenius", // fresenius Fresenius Immobilien-Verwaltungs-GmbH
659        "frl", // frl FRLregistry B.V.
660        "frogans", // frogans OP3FT
661        "frontier", // frontier Frontier Communications Corporation
662        "ftr", // ftr Frontier Communications Corporation
663        "fujitsu", // fujitsu Fujitsu Limited
664        "fun", // fun Radix Technologies Inc.
665        "fund", // fund Binky Moon, LLC
666        "furniture", // furniture Binky Moon, LLC
667        "futbol", // futbol Dog Beach, LLC
668        "fyi", // fyi Binky Moon, LLC
669        "gal", // gal Asociación puntoGAL
670        "gallery", // gallery Binky Moon, LLC
671        "gallo", // gallo Gallo Vineyards, Inc.
672        "gallup", // gallup Gallup, Inc.
673        "game", // game XYZ.COM LLC
674        "games", // games Dog Beach, LLC
675        "gap", // gap The Gap, Inc.
676        "garden", // garden Registry Services, LLC
677        "gay", // gay Registry Services, LLC
678        "gbiz", // gbiz Charleston Road Registry Inc.
679        "gdn", // gdn Joint Stock Company "Navigation-information systems"
680        "gea", // gea GEA Group Aktiengesellschaft
681        "gent", // gent Easyhost bv
682        "genting", // genting Resorts World Inc. Pte. Ltd.
683        "george", // george Wal-Mart Stores, Inc.
684        "ggee", // ggee GMO Internet, Inc.
685        "gift", // gift Uniregistry, Corp.
686        "gifts", // gifts Binky Moon, LLC
687        "gives", // gives Public Interest Registry (PIR)
688        "giving", // giving Public Interest Registry (PIR)
689        "glass", // glass Binky Moon, LLC
690        "gle", // gle Charleston Road Registry Inc.
691        "global", // global Identity Digital Limited
692        "globo", // globo Globo Comunicação e Participações S.A
693        "gmail", // gmail Charleston Road Registry Inc.
694        "gmbh", // gmbh Binky Moon, LLC
695        "gmo", // gmo GMO Internet, Inc.
696        "gmx", // gmx 1&1 Mail & Media GmbH
697        "godaddy", // godaddy Go Daddy East, LLC
698        "gold", // gold Binky Moon, LLC
699        "goldpoint", // goldpoint YODOBASHI CAMERA CO.,LTD.
700        "golf", // golf Binky Moon, LLC
701        "goodyear", // goodyear The Goodyear Tire & Rubber Company
702        "goog", // goog Charleston Road Registry Inc.
703        "google", // google Charleston Road Registry Inc.
704        "gop", // gop Republican State Leadership Committee, Inc.
705        "got", // got Jolly Host, LLC
706        "gov", // gov Cybersecurity and Infrastructure Security Agency
707        "grainger", // grainger Grainger Registry Services, LLC
708        "graphics", // graphics Binky Moon, LLC
709        "gratis", // gratis Binky Moon, LLC
710        "green", // green Identity Digital Limited
711        "gripe", // gripe Binky Moon, LLC
712        "grocery", // grocery Wal-Mart Stores, Inc.
713        "group", // group Binky Moon, LLC
714        "gucci", // gucci Guccio Gucci S.p.a.
715        "guge", // guge Charleston Road Registry Inc.
716        "guide", // guide Binky Moon, LLC
717        "guitars", // guitars XYZ.COM LLC
718        "guru", // guru Binky Moon, LLC
719        "hair", // hair XYZ.COM LLC
720        "hamburg", // hamburg Hamburg Top-Level-Domain GmbH
721        "hangout", // hangout Charleston Road Registry Inc.
722        "haus", // haus Dog Beach, LLC
723        "hbo", // hbo HBO Registry Services, Inc.
724        "hdfc", // hdfc HOUSING DEVELOPMENT FINANCE CORPORATION LIMITED
725        "hdfcbank", // hdfcbank HDFC Bank Limited
726        "health", // health Registry Services, LLC
727        "healthcare", // healthcare Binky Moon, LLC
728        "help", // help Innovation Service Ltd
729        "here", // here Charleston Road Registry Inc.
730        "hermes", // hermes Hermes International
731        "hiphop", // hiphop Dot Hip Hop, LLC
732        "hisamitsu", // hisamitsu Hisamitsu Pharmaceutical Co.,Inc.
733        "hitachi", // hitachi Hitachi, Ltd.
734        "hiv", // hiv Internet Naming Co.
735        "hkt", // hkt PCCW-HKT DataCom Services Limited
736        "hockey", // hockey Binky Moon, LLC
737        "holdings", // holdings Binky Moon, LLC
738        "holiday", // holiday Binky Moon, LLC
739        "homedepot", // homedepot Home Depot Product Authority, LLC
740        "homegoods", // homegoods The TJX Companies, Inc.
741        "homes", // homes XYZ.COM LLC
742        "homesense", // homesense The TJX Companies, Inc.
743        "honda", // honda Honda Motor Co., Ltd.
744        "horse", // horse Registry Services, LLC
745        "hospital", // hospital Binky Moon, LLC
746        "host", // host Radix Technologies Inc.
747        "hosting", // hosting XYZ.COM LLC
748        "hot", // hot Amazon Registry Services, Inc.
749        "hotels", // hotels Booking.com B.V.
750        "hotmail", // hotmail Microsoft Corporation
751        "house", // house Binky Moon, LLC
752        "how", // how Charleston Road Registry Inc.
753        "hsbc", // hsbc HSBC Global Services (UK) Limited
754        "hughes", // hughes Hughes Satellite Systems Corporation
755        "hyatt", // hyatt Hyatt GTLD, L.L.C.
756        "hyundai", // hyundai Hyundai Motor Company
757        "ibm", // ibm International Business Machines Corporation
758        "icbc", // icbc Industrial and Commercial Bank of China Limited
759        "ice", // ice IntercontinentalExchange, Inc.
760        "icu", // icu Shortdot SA
761        "ieee", // ieee IEEE Global LLC
762        "ifm", // ifm ifm electronic gmbh
763        "ikano", // ikano Ikano S.A.
764        "imamat", // imamat Fondation Aga Khan (Aga Khan Foundation)
765        "imdb", // imdb Amazon Registry Services, Inc.
766        "immo", // immo Binky Moon, LLC
767        "immobilien", // immobilien Dog Beach, LLC
768        "inc", // inc Intercap Registry Inc.
769        "industries", // industries Binky Moon, LLC
770        "infiniti", // infiniti NISSAN MOTOR CO., LTD.
771        "info", // info Identity Digital Limited
772        "ing", // ing Charleston Road Registry Inc.
773        "ink", // ink Registry Services, LLC
774        "institute", // institute Binky Moon, LLC
775        "insurance", // insurance fTLD Registry Services LLC
776        "insure", // insure Binky Moon, LLC
777        "int", // int Internet Assigned Numbers Authority
778        "international", // international Binky Moon, LLC
779        "intuit", // intuit Intuit Administrative Services, Inc.
780        "investments", // investments Binky Moon, LLC
781        "ipiranga", // ipiranga Ipiranga Produtos de Petroleo S.A.
782        "irish", // irish Binky Moon, LLC
783        "ismaili", // ismaili Fondation Aga Khan (Aga Khan Foundation)
784        "ist", // ist Istanbul Metropolitan Municipality
785        "istanbul", // istanbul Istanbul Metropolitan Municipality
786        "itau", // itau Itau Unibanco Holding S.A.
787        "itv", // itv ITV Services Limited
788        "jaguar", // jaguar Jaguar Land Rover Ltd
789        "java", // java Oracle Corporation
790        "jcb", // jcb JCB Co., Ltd.
791        "jeep", // jeep FCA US LLC.
792        "jetzt", // jetzt Binky Moon, LLC
793        "jewelry", // jewelry Binky Moon, LLC
794        "jio", // jio Reliance Industries Limited
795        "jll", // jll Jones Lang LaSalle Incorporated
796        "jmp", // jmp Matrix IP LLC
797        "jnj", // jnj Johnson & Johnson Services, Inc.
798        "jobs", // jobs Employ Media LLC
799        "joburg", // joburg ZA Central Registry NPC trading as ZA Central Registry
800        "jot", // jot Jolly Host, LLC
801        "joy", // joy Amazon Registry Services, Inc.
802        "jpmorgan", // jpmorgan JPMorgan Chase Bank, National Association
803        "jprs", // jprs Japan Registry Services Co., Ltd.
804        "juegos", // juegos Dog Beach, LLC
805        "kaufen", // kaufen Dog Beach, LLC
806        "kddi", // kddi KDDI CORPORATION
807        "kerryhotels", // kerryhotels Kerry Trading Co. Limited
808        "kerryproperties", // kerryproperties Kerry Trading Co. Limited
809        "kfh", // kfh Kuwait Finance House
810        "kia", // kia KIA MOTORS CORPORATION
811        "kids", // kids DotKids Foundation Limited
812        "kim", // kim Identity Digital Limited
813        "kindle", // kindle Amazon Registry Services, Inc.
814        "kitchen", // kitchen Binky Moon, LLC
815        "kiwi", // kiwi DOT KIWI LIMITED
816        "koeln", // koeln domainworx Service & Management GmbH
817        "komatsu", // komatsu Komatsu Ltd.
818        "kosher", // kosher Kosher Marketing Assets LLC
819        "kpmg", // kpmg KPMG International Cooperative (KPMG International Genossenschaft)
820        "kpn", // kpn Koninklijke KPN N.V.
821        "krd", // krd KRG Department of Information Technology
822        "kred", // kred KredTLD Pty Ltd
823        "kuokgroup", // kuokgroup Kerry Trading Co. Limited
824        "kyoto", // kyoto Academic Institution: Kyoto Jyoho Gakuen
825        "lacaixa", // lacaixa Fundación Bancaria Caixa d'Estalvis i Pensions de Barcelona, "la Caixa"
826        "lamborghini", // lamborghini Automobili Lamborghini S.p.A.
827        "lamer", // lamer The Estée Lauder Companies Inc.
828        "land", // land Binky Moon, LLC
829        "landrover", // landrover Jaguar Land Rover Ltd
830        "lanxess", // lanxess LANXESS Corporation
831        "lasalle", // lasalle Jones Lang LaSalle Incorporated
832        "lat", // lat XYZ.COM LLC
833        "latino", // latino Dish DBS Corporation
834        "latrobe", // latrobe La Trobe University
835        "law", // law Registry Services, LLC
836        "lawyer", // lawyer Dog Beach, LLC
837        "lds", // lds IRI Domain Management, LLC
838        "lease", // lease Binky Moon, LLC
839        "leclerc", // leclerc A.C.D. LEC Association des Centres Distributeurs Edouard Leclerc
840        "lefrak", // lefrak LeFrak Organization, Inc.
841        "legal", // legal Binky Moon, LLC
842        "lego", // lego LEGO Juris A/S
843        "lexus", // lexus TOYOTA MOTOR CORPORATION
844        "lgbt", // lgbt Identity Digital Limited
845        "lidl", // lidl Schwarz Domains und Services GmbH & Co. KG
846        "life", // life Binky Moon, LLC
847        "lifeinsurance", // lifeinsurance American Council of Life Insurers
848        "lifestyle", // lifestyle Internet Naming Co.
849        "lighting", // lighting Binky Moon, LLC
850        "like", // like Amazon Registry Services, Inc.
851        "lilly", // lilly Eli Lilly and Company
852        "limited", // limited Binky Moon, LLC
853        "limo", // limo Binky Moon, LLC
854        "lincoln", // lincoln Ford Motor Company
855        "link", // link Nova Registry Ltd.
856        "live", // live Dog Beach, LLC
857        "living", // living Internet Naming Co.
858        "llc", // llc Identity Digital Limited
859        "llp", // llp Intercap Registry Inc.
860        "loan", // loan dot Loan Limited
861        "loans", // loans Binky Moon, LLC
862        "locker", // locker Orange Domains LLC
863        "locus", // locus Locus Analytics LLC
864        "lol", // lol XYZ.COM LLC
865        "london", // london Dot London Domains Limited
866        "lotte", // lotte Lotte Holdings Co., Ltd.
867        "lotto", // lotto Identity Digital Limited
868        "love", // love Waterford Limited
869        "lpl", // lpl LPL Holdings, Inc.
870        "lplfinancial", // lplfinancial LPL Holdings, Inc.
871        "ltd", // ltd Binky Moon, LLC
872        "ltda", // ltda InterNetX Corp.
873        "lundbeck", // lundbeck H. Lundbeck A/S
874        "luxe", // luxe Registry Services, LLC
875        "luxury", // luxury Luxury Partners LLC
876        "madrid", // madrid Comunidad de Madrid
877        "maif", // maif Mutuelle Assurance Instituteur France (MAIF)
878        "maison", // maison Binky Moon, LLC
879        "makeup", // makeup XYZ.COM LLC
880        "man", // man MAN Truck & Bus SE
881        "management", // management Binky Moon, LLC
882        "mango", // mango PUNTO FA S.L.
883        "map", // map Charleston Road Registry Inc.
884        "market", // market Dog Beach, LLC
885        "marketing", // marketing Binky Moon, LLC
886        "markets", // markets Dog Beach, LLC
887        "marriott", // marriott Marriott Worldwide Corporation
888        "marshalls", // marshalls The TJX Companies, Inc.
889        "mattel", // mattel Mattel IT Services, Inc.
890        "mba", // mba Binky Moon, LLC
891        "mckinsey", // mckinsey McKinsey Holdings, Inc.
892        "med", // med Medistry LLC
893        "media", // media Binky Moon, LLC
894        "meet", // meet Charleston Road Registry Inc.
895        "melbourne", // melbourne The Crown in right of the State of Victoria, Department of State Development, Business and Innovation
896        "meme", // meme Charleston Road Registry Inc.
897        "memorial", // memorial Dog Beach, LLC
898        "men", // men Exclusive Registry Limited
899        "menu", // menu Dot Menu Registry LLC
900        "merck", // merck Merck Registry Holdings, Inc.
901        "merckmsd", // merckmsd MSD Registry Holdings, Inc.
902        "miami", // miami Registry Services, LLC
903        "microsoft", // microsoft Microsoft Corporation
904        "mil", // mil DoD Network Information Center
905        "mini", // mini Bayerische Motoren Werke Aktiengesellschaft
906        "mint", // mint Intuit Administrative Services, Inc.
907        "mit", // mit Massachusetts Institute of Technology
908        "mitsubishi", // mitsubishi Mitsubishi Corporation
909        "mlb", // mlb MLB Advanced Media DH, LLC
910        "mls", // mls The Canadian Real Estate Association
911        "mma", // mma MMA IARD
912        "mobi", // mobi Identity Digital Limited
913        "mobile", // mobile Dish DBS Corporation
914        "moda", // moda Dog Beach, LLC
915        "moe", // moe Interlink Systems Innovation Institute K.K.
916        "moi", // moi Amazon Registry Services, Inc.
917        "mom", // mom XYZ.COM LLC
918        "monash", // monash Monash University
919        "money", // money Binky Moon, LLC
920        "monster", // monster XYZ.COM LLC
921        "mormon", // mormon IRI Domain Management, LLC ("Applicant")
922        "mortgage", // mortgage Dog Beach, LLC
923        "moscow", // moscow Foundation for Assistance for Internet Technologies and Infrastructure Development (FAITID)
924        "moto", // moto Motorola Trademark Holdings, LLC
925        "motorcycles", // motorcycles XYZ.COM LLC
926        "mov", // mov Charleston Road Registry Inc.
927        "movie", // movie Binky Moon, LLC
928        "msd", // msd MSD Registry Holdings, Inc.
929        "mtn", // mtn MTN Dubai Limited
930        "mtr", // mtr MTR Corporation Limited
931        "museum", // museum Museum Domain Management Association
932        "music", // music DotMusic Limited
933        "nab", // nab National Australia Bank Limited
934        "nagoya", // nagoya GMO Registry, Inc.
935        "name", // name VeriSign Information Services, Inc.
936        "navy", // navy Dog Beach, LLC
937        "nba", // nba NBA REGISTRY, LLC
938        "nec", // nec NEC Corporation
939        "net", // net VeriSign Global Registry Services
940        "netbank", // netbank COMMONWEALTH BANK OF AUSTRALIA
941        "netflix", // netflix Netflix, Inc.
942        "network", // network Binky Moon, LLC
943        "neustar", // neustar NeuStar, Inc.
944        "new", // new Charleston Road Registry Inc.
945        "news", // news Dog Beach, LLC
946        "next", // next Next plc
947        "nextdirect", // nextdirect Next plc
948        "nexus", // nexus Charleston Road Registry Inc.
949        "nfl", // nfl NFL Reg Ops LLC
950        "ngo", // ngo Public Interest Registry
951        "nhk", // nhk Japan Broadcasting Corporation (NHK)
952        "nico", // nico DWANGO Co., Ltd.
953        "nike", // nike NIKE, Inc.
954        "nikon", // nikon NIKON CORPORATION
955        "ninja", // ninja Dog Beach, LLC
956        "nissan", // nissan NISSAN MOTOR CO., LTD.
957        "nissay", // nissay Nippon Life Insurance Company
958        "nokia", // nokia Nokia Corporation
959        "norton", // norton Gen Digital Inc.
960        "now", // now Amazon Registry Services, Inc.
961        "nowruz", // nowruz Emergency Back-End Registry Operator Program - ICANN
962        "nowtv", // nowtv Starbucks (HK) Limited
963        "nra", // nra National Rifle Association of America
964        "nrw", // nrw Minds + Machines GmbH
965        "ntt", // ntt NIPPON TELEGRAPH AND TELEPHONE CORPORATION
966        "nyc", // nyc The City of New York by and through the New York City Department of Information Technology & Telecommunications
967        "obi", // obi OBI Group Holding SE & Co. KGaA
968        "observer", // observer Fegistry, LLC
969        "office", // office Microsoft Corporation
970        "okinawa", // okinawa BRregistry, Inc.
971        "olayan", // olayan Competrol (Luxembourg) Sarl
972        "olayangroup", // olayangroup Competrol (Luxembourg) Sarl
973        "ollo", // ollo Dish DBS Corporation
974        "omega", // omega The Swatch Group Ltd
975        "one", // one One.com A/S
976        "ong", // ong Public Interest Registry
977        "onl", // onl Jolly Host, LLC
978        "online", // online Radix Technologies Inc. SEZC
979        "ooo", // ooo INFIBEAM AVENUES LIMITED
980        "open", // open American Express Travel Related Services Company, Inc.
981        "oracle", // oracle Oracle Corporation
982        "orange", // orange Orange Brand Services Limited
983        "org", // org Public Interest Registry (PIR)
984        "organic", // organic Identity Digital Limited
985        "origins", // origins The Estée Lauder Companies Inc.
986        "osaka", // osaka Osaka Registry Co., Ltd.
987        "otsuka", // otsuka Otsuka Holdings Co., Ltd.
988        "ott", // ott Dish DBS Corporation
989        "ovh", // ovh OVH SAS
990        "page", // page Charleston Road Registry Inc.
991        "panasonic", // panasonic Panasonic Corporation
992        "paris", // paris City of Paris
993        "pars", // pars Emergency Back-End Registry Operator Program - ICANN
994        "partners", // partners Binky Moon, LLC
995        "parts", // parts Binky Moon, LLC
996        "party", // party Blue Sky Registry Limited
997        "pay", // pay Amazon Registry Services, Inc.
998        "pccw", // pccw PCCW Enterprises Limited
999        "pet", // pet Identity Digital Limited
1000        "pfizer", // pfizer Pfizer Inc.
1001        "pharmacy", // pharmacy National Association of Boards of Pharmacy
1002        "phd", // phd Charleston Road Registry Inc.
1003        "philips", // philips Koninklijke Philips N.V.
1004        "phone", // phone Dish DBS Corporation
1005        "photo", // photo Registry Services, LLC
1006        "photography", // photography Binky Moon, LLC
1007        "photos", // photos Binky Moon, LLC
1008        "physio", // physio PhysBiz Pty Ltd
1009        "pics", // pics XYZ.COM LLC
1010        "pictet", // pictet Banque Pictet & Cie SA
1011        "pictures", // pictures Binky Moon, LLC
1012        "pid", // pid Top Level Spectrum, Inc.
1013        "pin", // pin Amazon Registry Services, Inc.
1014        "ping", // ping Ping Registry Provider, Inc.
1015        "pink", // pink Identity Digital Limited
1016        "pioneer", // pioneer Pioneer Corporation
1017        "pizza", // pizza Binky Moon, LLC
1018        "place", // place Binky Moon, LLC
1019        "play", // play Charleston Road Registry Inc.
1020        "playstation", // playstation Sony Computer Entertainment Inc.
1021        "plumbing", // plumbing Binky Moon, LLC
1022        "plus", // plus Binky Moon, LLC
1023        "pnc", // pnc PNC Domain Co., LLC
1024        "pohl", // pohl Deutsche Vermögensberatung Aktiengesellschaft DVAG
1025        "poker", // poker Identity Digital Limited
1026        "politie", // politie Politie Nederland
1027        "porn", // porn ICM Registry PN LLC
1028        "post", // post Universal Postal Union
1029        "praxi", // praxi Praxi S.p.A.
1030        "press", // press Radix Technologies Inc.
1031        "prime", // prime Amazon Registry Services, Inc.
1032        "pro", // pro Identity Digital Limited
1033        "prod", // prod Charleston Road Registry Inc.
1034        "productions", // productions Binky Moon, LLC
1035        "prof", // prof Charleston Road Registry Inc.
1036        "progressive", // progressive Progressive Casualty Insurance Company
1037        "promo", // promo Identity Digital Limited
1038        "properties", // properties Binky Moon, LLC
1039        "property", // property Digital Property Infrastructure Limited
1040        "protection", // protection XYZ.COM LLC
1041        "pru", // pru Prudential Financial, Inc.
1042        "prudential", // prudential Prudential Financial, Inc.
1043        "pub", // pub Dog Beach, LLC
1044        "pwc", // pwc PricewaterhouseCoopers LLP
1045        "qpon", // qpon DOTQPON LLC.
1046        "quebec", // quebec PointQuébec Inc
1047        "quest", // quest XYZ.COM LLC
1048        "racing", // racing Premier Registry Limited
1049        "radio", // radio Digity, LLC
1050        "read", // read Amazon Registry Services, Inc.
1051        "realestate", // realestate dotRealEstate LLC
1052        "realtor", // realtor Real Estate Domains LLC
1053        "realty", // realty Waterford Limited
1054        "recipes", // recipes Binky Moon, LLC
1055        "red", // red Identity Digital Limited
1056        "redumbrella", // redumbrella Travelers TLD, LLC
1057        "rehab", // rehab Dog Beach, LLC
1058        "reise", // reise Binky Moon, LLC
1059        "reisen", // reisen Binky Moon, LLC
1060        "reit", // reit National Association of Real Estate Investment Trusts, Inc.
1061        "reliance", // reliance Reliance Industries Limited
1062        "ren", // ren ZDNS International Limited
1063        "rent", // rent XYZ.COM LLC
1064        "rentals", // rentals Binky Moon, LLC
1065        "repair", // repair Binky Moon, LLC
1066        "report", // report Binky Moon, LLC
1067        "republican", // republican Dog Beach, LLC
1068        "rest", // rest Punto 2012 Sociedad Anonima Promotora de Inversion de Capital Variable
1069        "restaurant", // restaurant Binky Moon, LLC
1070        "review", // review dot Review Limited
1071        "reviews", // reviews Dog Beach, LLC
1072        "rexroth", // rexroth Robert Bosch GMBH
1073        "rich", // rich iRegistry GmbH
1074        "richardli", // richardli Pacific Century Asset Management (HK) Limited
1075        "ricoh", // ricoh Ricoh Company, Ltd.
1076        "ril", // ril Reliance Industries Limited
1077        "rio", // rio Empresa Municipal de Informática SA - IPLANRIO
1078        "rip", // rip Dog Beach, LLC
1079        "rocks", // rocks Dog Beach, LLC
1080        "rodeo", // rodeo Registry Services, LLC
1081        "rogers", // rogers Rogers Communications Canada Inc.
1082        "room", // room Amazon Registry Services, Inc.
1083        "rsvp", // rsvp Charleston Road Registry Inc.
1084        "rugby", // rugby World Rugby Strategic Developments Limited
1085        "ruhr", // ruhr dotSaarland GmbH
1086        "run", // run Binky Moon, LLC
1087        "rwe", // rwe RWE AG
1088        "ryukyu", // ryukyu BRregistry, Inc.
1089        "saarland", // saarland dotSaarland GmbH
1090        "safe", // safe Amazon Registry Services, Inc.
1091        "safety", // safety Jolly Host, LLC
1092        "sakura", // sakura SAKURA internet Inc.
1093        "sale", // sale Dog Beach, LLC
1094        "salon", // salon Binky Moon, LLC
1095        "samsclub", // samsclub Wal-Mart Stores, Inc.
1096        "samsung", // samsung SAMSUNG SDS CO., LTD
1097        "sandvik", // sandvik Sandvik AB
1098        "sandvikcoromant", // sandvikcoromant Sandvik AB
1099        "sanofi", // sanofi Sanofi
1100        "sap", // sap SAP AG
1101        "sarl", // sarl Binky Moon, LLC
1102        "sas", // sas Research IP LLC
1103        "save", // save Amazon Registry Services, Inc.
1104        "saxo", // saxo Saxo Bank A/S
1105        "sbi", // sbi STATE BANK OF INDIA
1106        "sbs", // sbs Shortdot SA
1107        "scb", // scb The Siam Commercial Bank Public Company Limited ("SCB")
1108        "schaeffler", // schaeffler Schaeffler Technologies AG & Co. KG
1109        "schmidt", // schmidt SCHMIDT GROUPE S.A.S.
1110        "scholarships", // scholarships Scholarships.com, LLC
1111        "school", // school Binky Moon, LLC
1112        "schule", // schule Binky Moon, LLC
1113        "schwarz", // schwarz Schwarz Domains und Services GmbH & Co. KG
1114        "science", // science dot Science Limited
1115        "scot", // scot Dot Scot Registry Limited
1116        "search", // search Charleston Road Registry Inc.
1117        "seat", // seat SEAT, S.A. (Sociedad Unipersonal)
1118        "secure", // secure Amazon Registry Services, Inc.
1119        "security", // security XYZ.COM LLC
1120        "seek", // seek Seek Limited
1121        "select", // select Registry Services, LLC
1122        "sener", // sener Sener Ingeniería y Sistemas, S.A.
1123        "services", // services Binky Moon, LLC
1124        "seven", // seven Seven West Media Ltd
1125        "sew", // sew SEW-EURODRIVE GmbH & Co KG
1126        "sex", // sex ICM Registry SX LLC
1127        "sexy", // sexy Internet Naming Co.
1128        "sfr", // sfr Societe Francaise du Radiotelephone - SFR
1129        "shangrila", // shangrila Shangri-La International Hotel Management Limited
1130        "sharp", // sharp Sharp Corporation
1131        "shell", // shell Shell Information Technology International Inc
1132        "shia", // shia Emergency Back-End Registry Operator Program - ICANN
1133        "shiksha", // shiksha Identity Digital Limited
1134        "shoes", // shoes Binky Moon, LLC
1135        "shop", // shop GMO Registry, Inc.
1136        "shopping", // shopping Binky Moon, LLC
1137        "shouji", // shouji Beijing Qihu Keji Co., Ltd.
1138        "show", // show Binky Moon, LLC
1139        "silk", // silk Amazon Registry Services, Inc.
1140        "sina", // sina Sina Corporation
1141        "singles", // singles Binky Moon, LLC
1142        "site", // site Radix Technologies Inc. SEZC
1143        "ski", // ski Identity Digital Limited
1144        "skin", // skin XYZ.COM LLC
1145        "sky", // sky Sky UK Limited
1146        "skype", // skype Microsoft Corporation
1147        "sling", // sling DISH Technologies L.L.C.
1148        "smart", // smart Smart Communications, Inc. (SMART)
1149        "smile", // smile Amazon Registry Services, Inc.
1150        "sncf", // sncf Société Nationale SNCF
1151        "soccer", // soccer Binky Moon, LLC
1152        "social", // social Dog Beach, LLC
1153        "softbank", // softbank SoftBank Group Corp.
1154        "software", // software Dog Beach, LLC
1155        "sohu", // sohu Sohu.com Limited
1156        "solar", // solar Binky Moon, LLC
1157        "solutions", // solutions Binky Moon, LLC
1158        "song", // song Amazon Registry Services, Inc.
1159        "sony", // sony Sony Corporation
1160        "soy", // soy Charleston Road Registry Inc.
1161        "spa", // spa Asia Spa and Wellness Promotion Council Limited
1162        "space", // space Radix Technologies Inc.
1163        "sport", // sport SportAccord
1164        "spot", // spot Amazon Registry Services, Inc.
1165        "srl", // srl InterNetX Corp.
1166        "stada", // stada STADA Arzneimittel AG
1167        "staples", // staples Staples, Inc.
1168        "star", // star Star India Private Limited
1169        "statebank", // statebank STATE BANK OF INDIA
1170        "statefarm", // statefarm State Farm Mutual Automobile Insurance Company
1171        "stc", // stc Saudi Telecom Company
1172        "stcgroup", // stcgroup Saudi Telecom Company
1173        "stockholm", // stockholm Stockholms kommun
1174        "storage", // storage XYZ.COM LLC
1175        "store", // store Radix Technologies Inc.
1176        "stream", // stream dot Stream Limited
1177        "studio", // studio Dog Beach, LLC
1178        "study", // study Registry Services, LLC
1179        "style", // style Binky Moon, LLC
1180        "sucks", // sucks Vox Populi Registry Ltd.
1181        "supplies", // supplies Binky Moon, LLC
1182        "supply", // supply Binky Moon, LLC
1183        "support", // support Binky Moon, LLC
1184        "surf", // surf Registry Services, LLC
1185        "surgery", // surgery Binky Moon, LLC
1186        "suzuki", // suzuki SUZUKI MOTOR CORPORATION
1187        "swatch", // swatch The Swatch Group Ltd
1188        "swiss", // swiss Swiss Confederation
1189        "sydney", // sydney State of New South Wales, Department of Premier and Cabinet
1190        "systems", // systems Binky Moon, LLC
1191        "tab", // tab Tabcorp Holdings Limited
1192        "taipei", // taipei Taipei City Government
1193        "talk", // talk Amazon Registry Services, Inc.
1194        "taobao", // taobao Alibaba Group Holding Limited
1195        "target", // target Target Domain Holdings, LLC
1196        "tatamotors", // tatamotors Tata Motors Ltd
1197        "tatar", // tatar Limited Liability Company "Coordination Center of Regional Domain of Tatarstan Republic"
1198        "tattoo", // tattoo Registry Services, LLC
1199        "tax", // tax Binky Moon, LLC
1200        "taxi", // taxi Binky Moon, LLC
1201        "tci", // tci Emergency Back-End Registry Operator Program - ICANN
1202        "tdk", // tdk TDK Corporation
1203        "team", // team Binky Moon, LLC
1204        "tech", // tech Radix Technologies Inc.
1205        "technology", // technology Binky Moon, LLC
1206        "tel", // tel Telnames Ltd.
1207        "temasek", // temasek Temasek Holdings (Private) Limited
1208        "tennis", // tennis Binky Moon, LLC
1209        "teva", // teva Teva Pharmaceutical Industries Limited
1210        "thd", // thd Home Depot Product Authority, LLC
1211        "theater", // theater Binky Moon, LLC
1212        "theatre", // theatre XYZ.COM LLC
1213        "tiaa", // tiaa Teachers Insurance and Annuity Association of America
1214        "tickets", // tickets XYZ.COM LLC
1215        "tienda", // tienda Binky Moon, LLC
1216        "tips", // tips Binky Moon, LLC
1217        "tires", // tires Binky Moon, LLC
1218        "tirol", // tirol punkt Tirol GmbH
1219        "tjmaxx", // tjmaxx The TJX Companies, Inc.
1220        "tjx", // tjx The TJX Companies, Inc.
1221        "tkmaxx", // tkmaxx The TJX Companies, Inc.
1222        "tmall", // tmall Alibaba Group Holding Limited
1223        "today", // today Binky Moon, LLC
1224        "tokyo", // tokyo GMO Registry, Inc.
1225        "tools", // tools Binky Moon, LLC
1226        "top", // top Hong Kong Zhongze International Limited
1227        "toray", // toray Toray Industries, Inc.
1228        "toshiba", // toshiba TOSHIBA Corporation
1229        "total", // total TotalEnergies SE
1230        "tours", // tours Binky Moon, LLC
1231        "town", // town Binky Moon, LLC
1232        "toyota", // toyota TOYOTA MOTOR CORPORATION
1233        "toys", // toys Binky Moon, LLC
1234        "trade", // trade Elite Registry Limited
1235        "trading", // trading Dog Beach, LLC
1236        "training", // training Binky Moon, LLC
1237        "travel", // travel Dog Beach, LLC
1238        "travelers", // travelers Travelers TLD, LLC
1239        "travelersinsurance", // travelersinsurance Travelers TLD, LLC
1240        "trust", // trust Internet Naming Co.
1241        "trv", // trv Travelers TLD, LLC
1242        "tube", // tube Latin American Telecom LLC
1243        "tui", // tui TUI AG
1244        "tunes", // tunes Amazon Registry Services, Inc.
1245        "tushu", // tushu Amazon Registry Services, Inc.
1246        "tvs", // tvs T V SUNDRAM IYENGAR & SONS PRIVATE LIMITED
1247        "ubank", // ubank National Australia Bank Limited
1248        "ubs", // ubs UBS AG
1249        "unicom", // unicom China United Network Communications Corporation Limited
1250        "university", // university Binky Moon, LLC
1251        "uno", // uno Radix Technologies Inc.
1252        "uol", // uol UBN INTERNET LTDA.
1253        "ups", // ups UPS Market Driver, Inc.
1254        "vacations", // vacations Binky Moon, LLC
1255        "vana", // vana D3 Registry LLC
1256        "vanguard", // vanguard The Vanguard Group, Inc.
1257        "vegas", // vegas Dot Vegas, Inc.
1258        "ventures", // ventures Binky Moon, LLC
1259        "verisign", // verisign VeriSign, Inc.
1260        "versicherung", // versicherung tldbox GmbH
1261        "vet", // vet Dog Beach, LLC
1262        "viajes", // viajes Binky Moon, LLC
1263        "video", // video Dog Beach, LLC
1264        "vig", // vig VIENNA INSURANCE GROUP AG Wiener Versicherung Gruppe
1265        "viking", // viking Viking River Cruises (Bermuda) Ltd.
1266        "villas", // villas Binky Moon, LLC
1267        "vin", // vin Binky Moon, LLC
1268        "vip", // vip Registry Services, LLC
1269        "virgin", // virgin Virgin Enterprises Limited
1270        "visa", // visa Visa Worldwide Pte. Limited
1271        "vision", // vision Binky Moon, LLC
1272        "viva", // viva Saudi Telecom Company
1273        "vivo", // vivo Telefonica Brasil S.A.
1274        "vlaanderen", // vlaanderen DNS.be vzw
1275        "vodka", // vodka Registry Services, LLC
1276        "volvo", // volvo Volvo Holding Sverige Aktiebolag
1277        "vote", // vote Monolith Registry LLC
1278        "voting", // voting Valuetainment Corp.
1279        "voto", // voto Monolith Registry LLC
1280        "voyage", // voyage Binky Moon, LLC
1281        "wales", // wales Nominet UK
1282        "walmart", // walmart Wal-Mart Stores, Inc.
1283        "walter", // walter Sandvik AB
1284        "wang", // wang Zodiac Wang Limited
1285        "wanggou", // wanggou Amazon Registry Services, Inc.
1286        "watch", // watch Binky Moon, LLC
1287        "watches", // watches Identity Digital Limited
1288        "weather", // weather The Weather Company, LLC
1289        "weatherchannel", // weatherchannel The Weather Company, LLC
1290        "web", // web VeriSign, Inc.
1291        "webcam", // webcam dot Webcam Limited
1292        "weber", // weber Saint-Gobain Weber SA
1293        "website", // website Radix Technologies Inc.
1294        "wed", // wed Emergency Back-End Registry Operator Program - ICANN
1295        "wedding", // wedding Registry Services, LLC
1296        "weibo", // weibo Sina Corporation
1297        "weir", // weir Weir Group IP Limited
1298        "whoswho", // whoswho Who's Who Registry
1299        "wien", // wien punkt.wien GmbH
1300        "wiki", // wiki Registry Services, LLC
1301        "williamhill", // williamhill William Hill Organization Limited
1302        "win", // win First Registry Limited
1303        "windows", // windows Microsoft Corporation
1304        "wine", // wine Binky Moon, LLC
1305        "winners", // winners The TJX Companies, Inc.
1306        "wme", // wme William Morris Endeavor Entertainment, LLC
1307        "woodside", // woodside Woodside Petroleum Limited
1308        "work", // work Registry Services, LLC
1309        "works", // works Binky Moon, LLC
1310        "world", // world Binky Moon, LLC
1311        "wow", // wow Amazon Registry Services, Inc.
1312        "wtc", // wtc World Trade Centers Association, Inc.
1313        "wtf", // wtf Binky Moon, LLC
1314        "xbox", // xbox Microsoft Corporation
1315        "xerox", // xerox Xerox DNHC LLC
1316        "xin", // xin Elegant Leader Limited
1317        "xn--11b4c3d", // कॉम VeriSign Sarl
1318        "xn--1ck2e1b", // セール Amazon Registry Services, Inc.
1319        "xn--1qqw23a", // 佛山 Guangzhou YU Wei Information Technology Co., Ltd.
1320        "xn--30rr7y", // 慈善 Excellent First Limited
1321        "xn--3bst00m", // 集团 Eagle Horizon Limited
1322        "xn--3ds443g", // 在线 Beijing TLD Registry Technology Limited
1323        "xn--3pxu8k", // 点看 VeriSign Sarl
1324        "xn--42c2d9a", // คอม VeriSign Sarl
1325        "xn--45q11c", // 八卦 Zodiac Gemini Ltd
1326        "xn--4gbrim", // موقع Helium TLDs Ltd
1327        "xn--55qw42g", // 公益 China Organizational Name Administration Center
1328        "xn--55qx5d", // 公司 China Internet Network Information Center (CNNIC)
1329        "xn--5su34j936bgsg", // 香格里拉 Shangri-La International Hotel Management Limited
1330        "xn--5tzm5g", // 网站 Jolly Host, LLC
1331        "xn--6frz82g", // 移动 Identity Digital Limited
1332        "xn--6qq986b3xl", // 我爱你 Tycoon Treasure Limited
1333        "xn--80adxhks", // москва Foundation for Assistance for Internet Technologies and Infrastructure Development (FAITID)
1334        "xn--80aqecdr1a", // католик Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
1335        "xn--80asehdb", // онлайн CORE Association
1336        "xn--80aswg", // сайт CORE Association
1337        "xn--8y0a063a", // 联通 China United Network Communications Corporation Limited
1338        "xn--9dbq2a", // קום VeriSign Sarl
1339        "xn--9et52u", // 时尚 RISE VICTORY LIMITED
1340        "xn--9krt00a", // 微博 Sina Corporation
1341        "xn--b4w605ferd", // 淡马锡 Temasek Holdings (Private) Limited
1342        "xn--bck1b9a5dre4c", // ファッション Amazon Registry Services, Inc.
1343        "xn--c1avg", // орг Public Interest Registry
1344        "xn--c2br7g", // नेट VeriSign Sarl
1345        "xn--cck2b3b", // ストア Amazon Registry Services, Inc.
1346        "xn--cckwcxetd", // アマゾン Amazon Registry Services, Inc.
1347        "xn--cg4bki", // 삼성 SAMSUNG SDS CO., LTD
1348        "xn--czr694b", // 商标 Internet DotTrademark Organisation Limited
1349        "xn--czrs0t", // 商店 Binky Moon, LLC
1350        "xn--czru2d", // 商城 Zodiac Aquarius Limited
1351        "xn--d1acj3b", // дети The Foundation for Network Initiatives “The Smart Internet”
1352        "xn--eckvdtc9d", // ポイント Amazon Registry Services, Inc.
1353        "xn--efvy88h", // 新闻 Guangzhou YU Wei Information and Technology Co.,Ltd
1354        "xn--fct429k", // 家電 Amazon Registry Services, Inc.
1355        "xn--fhbei", // كوم VeriSign Sarl
1356        "xn--fiq228c5hs", // 中文网 Beijing TLD Registry Technology Limited
1357        "xn--fiq64b", // 中信 CITIC Group Corporation
1358        "xn--fjq720a", // 娱乐 Binky Moon, LLC
1359        "xn--flw351e", // 谷歌 Charleston Road Registry Inc.
1360        "xn--fzys8d69uvgm", // 電訊盈科 PCCW Enterprises Limited
1361        "xn--g2xx48c", // 购物 Nawang Heli(Xiamen) Network Service Co., LTD.
1362        "xn--gckr3f0f", // クラウド Amazon Registry Services, Inc.
1363        "xn--gk3at1e", // 通販 Amazon Registry Services, Inc.
1364        "xn--hxt814e", // 网店 Zodiac Taurus Ltd.
1365        "xn--i1b6b1a6a2e", // संगठन Public Interest Registry
1366        "xn--imr513n", // 餐厅 Internet DotTrademark Organisation Limited
1367        "xn--io0a7i", // 网络 China Internet Network Information Center (CNNIC)
1368        "xn--j1aef", // ком VeriSign Sarl
1369        "xn--jlq480n2rg", // 亚马逊 Amazon Registry Services, Inc.
1370        "xn--jvr189m", // 食品 Amazon Registry Services, Inc.
1371        "xn--kcrx77d1x4a", // 飞利浦 Koninklijke Philips N.V.
1372        "xn--kput3i", // 手机 Beijing RITT-Net Technology Development Co., Ltd
1373        "xn--mgba3a3ejt", // ارامكو Aramco Services Company
1374        "xn--mgba7c0bbn0a", // العليان Competrol (Luxembourg) Sarl
1375        "xn--mgbab2bd", // بازار CORE Association
1376        "xn--mgbca7dzdo", // ابوظبي Abu Dhabi Systems and Information Centre
1377        "xn--mgbi4ecexp", // كاثوليك Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
1378        "xn--mgbt3dhd", // همراه Emergency Back-End Registry Operator Program - ICANN
1379        "xn--mk1bu44c", // 닷컴 VeriSign Sarl
1380        "xn--mxtq1m", // 政府 Net-Chinese Co., Ltd.
1381        "xn--ngbc5azd", // شبكة International Domain Registry Pty. Ltd.
1382        "xn--ngbe9e0a", // بيتك Kuwait Finance House
1383        "xn--ngbrx", // عرب League of Arab States
1384        "xn--nqv7f", // 机构 Public Interest Registry
1385        "xn--nqv7fs00ema", // 组织机构 Public Interest Registry
1386        "xn--nyqy26a", // 健康 Stable Tone Limited
1387        "xn--otu796d", // 招聘 Jiang Yu Liang Cai Technology Company Limited
1388        "xn--p1acf", // рус Rusnames Limited
1389        "xn--pssy2u", // 大拿 VeriSign Sarl
1390        "xn--q9jyb4c", // みんな Charleston Road Registry Inc.
1391        "xn--qcka1pmc", // グーグル Charleston Road Registry Inc.
1392        "xn--rhqv96g", // 世界 Stable Tone Limited
1393        "xn--rovu88b", // 書籍 Amazon Registry Services, Inc.
1394        "xn--ses554g", // 网址 KNET Co., Ltd
1395        "xn--t60b56a", // 닷넷 VeriSign Sarl
1396        "xn--tckwe", // コム VeriSign Sarl
1397        "xn--tiq49xqyj", // 天主教 Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
1398        "xn--unup4y", // 游戏 Binky Moon, LLC
1399        "xn--vermgensberater-ctb", // VERMöGENSBERATER Deutsche Vermögensberatung Aktiengesellschaft DVAG
1400        "xn--vermgensberatung-pwb", // VERMöGENSBERATUNG Deutsche Vermögensberatung Aktiengesellschaft DVAG
1401        "xn--vhquv", // 企业 Binky Moon, LLC
1402        "xn--vuq861b", // 信息 Beijing Tele-info Technology Co., Ltd.
1403        "xn--w4r85el8fhu5dnra", // 嘉里大酒店 Kerry Trading Co. Limited
1404        "xn--w4rs40l", // 嘉里 Kerry Trading Co. Limited
1405        "xn--xhq521b", // 广东 Guangzhou YU Wei Information Technology Co., Ltd.
1406        "xn--zfr164b", // 政务 China Organizational Name Administration Center
1407        "xxx", // xxx ICM Registry LLC
1408        "xyz", // xyz XYZ.COM LLC
1409        "yachts", // yachts XYZ.COM LLC
1410        "yahoo", // yahoo Yahoo Inc.
1411        "yamaxun", // yamaxun Amazon Registry Services, Inc.
1412        "yandex", // yandex YANDEX LLC
1413        "yodobashi", // yodobashi YODOBASHI CAMERA CO.,LTD.
1414        "yoga", // yoga Registry Services, LLC
1415        "yokohama", // yokohama GMO Registry, Inc.
1416        "you", // you Amazon Registry Services, Inc.
1417        "youtube", // youtube Charleston Road Registry Inc.
1418        "yun", // yun Beijing Qihu Keji Co., Ltd.
1419        "zappos", // zappos Amazon Registry Services, Inc.
1420        "zara", // zara Industria de Diseño Textil, S.A. (INDITEX, S.A.)
1421        "zero", // zero Amazon Registry Services, Inc.
1422        "zip", // zip Charleston Road Registry Inc.
1423        "zone", // zone Binky Moon, LLC
1424        "zuerich", // zuerich Kanton Zürich (Canton of Zurich)
1425    };
1426
1427    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1428    private static final String[] COUNTRY_CODE_TLDS = {
1429        // Taken from Version 2026111200, Last Updated Thu Nov 12 07:07:01 2026 UTC
1430        "ac", // ac Internet Computer Bureau Limited
1431        "ad", // ad Andorra Telecom
1432        "ae", // ae Telecommunications and Digital Government Regulatory Authority (TDRA)
1433        "af", // af Ministry of Communications and IT
1434        "ag", // ag UHSA School of Medicine
1435        "ai", // ai Government of Anguilla
1436        "al", // al Electronic and Postal Communications Authority - AKEP
1437        "am", // am "Internet Society" Non-governmental Organization
1438        "ao", // ao Ministry of Telecommunications and Information Technologies (MTTI)
1439        "aq", // aq Antarctica Network Information Centre Limited
1440        "ar", // ar Presidencia de la Nación , Secretaría Legal y Técnica
1441        "as", // as AS Domain Registry
1442        "at", // at nic.at GmbH
1443        "au", // au .au Domain Administration (auDA)
1444        "aw", // aw SETAR
1445        "ax", // ax Ålands landskapsregering
1446        "az", // az IntraNS
1447        "ba", // ba University Tele-Informatic Center (UTIC)
1448        "bb", // bb Ministry of Innovation, Science and Smart Technology
1449        "bd", // bd Posts and Telecommunications Division
1450        "be", // be DNS Belgium vzw/asbl
1451        "bf", // bf Autorité de Régulation des Communications Electroniques et des Postes (ARCEP)
1452        "bg", // bg Register.BG
1453        "bh", // bh Telecommunications Regulatory Authority (TRA)
1454        "bi", // bi Centre National de l'Informatique
1455        "bj", // bj Autorité de Régulation des Communications Electroniques et de la Poste du Bénin (ARCEP BENIN)
1456        "bm", // bm Registry General Department, Ministry of Home Affairs
1457        "bn", // bn Authority for Info-communications Technology Industry of Brunei Darussalam (AITI)
1458        "bo", // bo Agencia de Gobierno Electrónico y Tecnologías de Información y Comunicación
1459        "br", // br Comite Gestor da Internet no Brasil
1460        "bs", // bs University of The Bahamas
1461        "bt", // bt Ministry of Information and Communications
1462        "bv", // bv Norid A/S
1463        "bw", // bw Botswana Communications Regulatory Authority (BOCRA)
1464        "by", // by Belarusian Cloud Technologies LLC
1465        "bz", // bz University of Belize
1466        "ca", // ca Canadian Internet Registration Authority (CIRA) Autorité Canadienne pour les enregistrements Internet (ACEI)
1467        "cc", // cc eNIC Cocos (Keeling) Islands Pty. Ltd. d/b/a Island Internet Services
1468        "cd", // cd Office Congolais des Postes et Télécommunications - OCPT
1469        "cf", // cf Societe Centrafricaine de Telecommunications (SOCATEL)
1470        "cg", // cg Interpoint Switzerland
1471        "ch", // ch SWITCH The Swiss Education & Research Network
1472        "ci", // ci Autorité de Régulation des Télécommunications/TIC de Côte d’lvoire (ARTCI)
1473        "ck", // ck Telecom Cook Islands Ltd.
1474        "cl", // cl NIC Chile (University of Chile)
1475        "cm", // cm Agence Nationale des Technologies de l'Information et de la Communication (ANTIC)
1476        "cn", // cn China Internet Network Information Center (CNNIC)
1477        "co", // co Ministry of Information and Communications Technologies (MinTIC)
1478        "cr", // cr National Academy of Sciences (Academia Nacional de Ciencias)
1479        "cu", // cu CENIAInternet
1480        "cv", // cv Agência Reguladora Multissectorial da Economia (ARME)
1481        "cw", // cw University of Curacao
1482        "cx", // cx Christmas Island Domain Administration Limited
1483        "cy", // cy University of Cyprus
1484        "cz", // cz CZ.NIC, z.s.p.o
1485        "de", // de DENIC eG
1486        "dj", // dj Djibouti Telecom S.A
1487        "dk", // dk Dansk Internet Forum
1488        "dm", // dm DotDM Corporation
1489        "do", // do Pontificia Universidad Catolica Madre y Maestra, Recinto Santo Tomas de Aquino
1490        "dz", // dz CERIST
1491        "ec", // ec ECUADORDOMAIN S.A.
1492        "ee", // ee Eesti Interneti Sihtasutus (EIS)
1493        "eg", // eg Egyptian Universities Network (EUN), Supreme Council of Universities
1494        "er", // er Eritrea Telecommunication Services Corporation (EriTel)
1495        "es", // es Red.es
1496        "et", // et Ethio telecom
1497        "eu", // eu EURid vzw
1498        "fi", // fi Finnish Transport and Communications Agency Traficom
1499        "fj", // fj The University of the South Pacific IT Services
1500        "fk", // fk Falkland Islands Government
1501        "fm", // fm FSM Telecommunications Corporation
1502        "fo", // fo FO Council
1503        "fr", // fr Association Française pour le Nommage Internet en Coopération (A.F.N.I.C.)
1504        "ga", // ga Agence Nationale des Infrastructures Numériques et des Fréquences (ANINF)
1505        "gb", // gb Reserved Domain - IANA
1506        "gd", // gd The National Telecommunications Regulatory Commission (NTRC)
1507        "ge", // ge Caucasus Online LLC
1508        "gf", // gf CANAL+ TELECOM
1509        "gg", // gg Island Networks Ltd.
1510        "gh", // gh Network Computer Systems Limited
1511        "gi", // gi Sapphire Networks
1512        "gl", // gl TELE Greenland A/S
1513        "gm", // gm GM-NIC
1514        "gn", // gn Centre National des Sciences Halieutiques de Boussoura
1515        "gp", // gp Networking Technologies Group
1516        "gq", // gq GETESA
1517        "gr", // gr ICS-FORTH GR
1518        "gs", // gs Government of South Georgia and South Sandwich Islands (GSGSSI)
1519        "gt", // gt Universidad del Valle de Guatemala
1520        "gu", // gu University of Guam
1521        "gw", // gw Autoridade Reguladora Nacional - Tecnologias de Informação e Comunicação da Guiné-Bissau
1522        "gy", // gy University of Guyana
1523        "hk", // hk Hong Kong Internet Registration Corporation Ltd.
1524        "hm", // hm HM Domain Registry
1525        "hn", // hn Red de Desarrollo Sostenible Honduras
1526        "hr", // hr CARNet - Croatian Academic and Research Network
1527        "ht", // ht Consortium FDS/RDDH
1528        "hu", // hu Council of Hungarian Internet Providers (CHIP)
1529        "id", // id Perkumpulan Pengelola Nama Domain Internet Indonesia (PANDI)
1530        "ie", // ie IE Domain Registry CLG
1531        "il", // il The Israel Internet Association (RA)
1532        "im", // im Isle of Man Government
1533        "in", // in National Internet Exchange of India
1534        "io", // io Internet Computer Bureau Limited
1535        "iq", // iq Communications and Media Commission (CMC)
1536        "ir", // ir Institute for Research in Fundamental Sciences
1537        "is", // is ISNIC - Internet á Íslandi hf.
1538        "it", // it IIT - CNR
1539        "je", // je Island Networks (Jersey) Ltd.
1540        "jm", // jm University of West Indies
1541        "jo", // jo Ministry of Digital Economy and Entrepreneurship (MoDEE)
1542        "jp", // jp Japan Registry Services Co., Ltd.
1543        "ke", // ke Kenya Network Information Center (KeNIC)
1544        "kg", // kg AsiaInfo Telecommunication Enterprise
1545        "kh", // kh Telecommunication Regulator of Cambodia (TRC)
1546        "ki", // ki Ministry of Information, Communications and Transport (MICT)
1547        "km", // km Comores Telecom
1548        "kn", // kn Ministry of Finance, Sustainable Development Information & Technology
1549        "kp", // kp Star Joint Venture Company
1550        "kr", // kr Korea Internet & Security Agency (KISA)
1551        "kw", // kw Communications and Information Technology Regulatory Authority
1552        "ky", // ky Utility Regulation and Competition Office (OfReg)
1553        "kz", // kz Association of IT Companies of Kazakhstan
1554        "la", // la Lao National Internet Center (LANIC), Ministry of Technology and Communications
1555        "lb", // lb Internet Society Lebanon
1556        "lc", // lc University of Puerto Rico
1557        "li", // li SWITCH The Swiss Education & Research Network
1558        "lk", // lk Council for Information Technology LK Domain Registrar
1559        "lr", // lr Data Technology Solutions, Inc.
1560        "ls", // ls Lesotho Network Information Centre Proprietary (LSNIC)
1561        "lt", // lt Kaunas University of Technology
1562        "lu", // lu RESTENA
1563        "lv", // lv University of Latvia, Institute of Mathematics and Computer Science, Department of Network Solutions (DNS)
1564        "ly", // ly General Authority of Communications and Informatics (GACI)
1565        "ma", // ma Agence Nationale de Réglementation des Télécommunications (ANRT)
1566        "mc", // mc Direction des Plateformes et des Ressources Numériques
1567        "md", // md IP Serviciul Tehnologia Informatiei si Securitate Cibernetica
1568        "me", // me Government of Montenegro
1569        "mg", // mg NIC-MG (Network Information Center Madagascar)
1570        "mh", // mh Office of the Cabinet
1571        "mk", // mk Macedonian Academic Research Network Skopje
1572        "ml", // ml Agence des Technologies de l’Information et de la Communication
1573        "mm", // mm Ministry of Transport and Communications
1574        "mn", // mn Datacom Co., Ltd.
1575        "mo", // mo Macao Post and Telecommunications Bureau (CTT)
1576        "mp", // mp Saipan Datacom, Inc.
1577        "mq", // mq CANAL+ TELECOM
1578        "mr", // mr Université de Nouakchott Al Aasriya
1579        "ms", // ms MNI Networks Ltd.
1580        "mt", // mt NIC (Malta)
1581        "mu", // mu Internet Direct Ltd
1582        "mv", // mv Dhivehi Raajjeyge Gulhun PLC
1583        "mw", // mw Malawi Sustainable Development Network Programme (Malawi SDNP)
1584        "mx", // mx NIC-Mexico ITESM - Campus Monterrey
1585        "my", // my MYNIC Berhad
1586        "mz", // mz Centro de Informatica de Universidade Eduardo Mondlane
1587        "na", // na Namibian Network Information Center
1588        "nc", // nc Office des Postes et Telecommunications
1589        "ne", // ne Niger Télécoms SA (NIGERTELECOMS)
1590        "nf", // nf Norfolk Island Data Services
1591        "ng", // ng Nigeria Internet Registration Association
1592        "ni", // ni Universidad Nacional del Ingernieria. Division de Tecnologias de la Informacion.
1593        "nl", // nl SIDN (Stichting Internet Domeinregistratie Nederland)
1594        "no", // no Norid A/S
1595        "np", // np Mercantile Communications Pvt. Ltd.
1596        "nr", // nr CENPAC NET
1597        "nu", // nu The IUSN Foundation
1598        "nz", // nz InternetNZ
1599        "om", // om Telecommunications Regulatory Authority (TRA)
1600        "pa", // pa Universidad Tecnologica de Panama
1601        "pe", // pe Red Cientifica Peruana
1602        "pf", // pf Gouvernement de la Polynésie française
1603        "pg", // pg PNG DNS Administration, Vice Chancellors Office, The Papua New Guinea University of Technology
1604        "ph", // ph PH Domain Foundation
1605        "pk", // pk PKNIC
1606        "pl", // pl Research and Academic Computer Network
1607        "pm", // pm Association Française pour le Nommage Internet en Coopération (A.F.N.I.C.)
1608        "pn", // pn Pitcairn Island Administration
1609        "pr", // pr Gauss Research Laboratory Inc.
1610        "ps", // ps Ministry of Telecommunications & Information Technology, Government Computer Center
1611        "pt", // pt Associação DNS.PT
1612        "pw", // pw Micronesia Investment and Development Corporation
1613        "py", // py NIC-PY
1614        "qa", // qa Communications Regulatory Authority
1615        "re", // re Association Française pour le Nommage Internet en Coopération (A.F.N.I.C.)
1616        "ro", // ro National Institute for R&D in Informatics
1617        "rs", // rs Serbian National Internet Domain Registry (RNIDS)
1618        "ru", // ru Coordination Center for TLD RU
1619        "rw", // rw Rwanda Internet Community and Technology Alliance (RICTA) Ltd
1620        "sa", // sa Communications, Space and Technology Commission
1621        "sb", // sb Solomon Telekom Company Limited
1622        "sc", // sc VCS Pty Ltd
1623        "sd", // sd Sudan Internet Society
1624        "se", // se The Internet Infrastructure Foundation
1625        "sg", // sg Singapore Network Information Centre (SGNIC) Pte Ltd
1626        "sh", // sh Government of St. Helena
1627        "si", // si Academic and Research Network of Slovenia (ARNES)
1628        "sj", // sj Norid A/S
1629        "sk", // sk SK-NIC, a.s.
1630        "sl", // sl Sierratel
1631        "sm", // sm Telecom Italia San Marino S.p.A.
1632        "sn", // sn Universite Cheikh Anta Diop
1633        "so", // so Ministry of Post and Telecommunications
1634        "sr", // sr Telesur
1635        "ss", // ss National Communication Authority (NCA)
1636        "st", // st Tecnisys
1637        "su", // su Russian Institute for Development of Public Networks (ROSNIIROS)
1638        "sv", // sv SVNet
1639        "sx", // sx SX Registry SA B.V.
1640        "sy", // sy National Authority for Information Technology Services (NAITS)
1641        "sz", // sz University of Swaziland Department of Computer Science
1642        "tc", // tc Melrex TC
1643        "td", // td l'Agence de Développement des Technologies de l'Information et de la Communication (ADETIC)
1644        "tf", // tf Association Française pour le Nommage Internet en Coopération (A.F.N.I.C.)
1645        "tg", // tg Autorité de Régulation des Communications Electroniques et des Postes (ARCEP)
1646        "th", // th Thai Network Information Center Foundation
1647        "tj", // tj Information Technology Center
1648        "tk", // tk Telecommunication Tokelau Corporation (Teletok)
1649        "tl", // tl Autoridade Nacional de Comunicações
1650        "tm", // tm TM Domain Registry Ltd
1651        "tn", // tn Agence Tunisienne d'Internet
1652        "to", // to Government of the Kingdom of Tonga, H.R.H. Crown Prince Tupouto'a, c/o Consulate of Tonga
1653        "tr", // tr Bilgi Teknolojileri ve İletişim Kurumu (BTK)
1654        "tt", // tt University of the West Indies, Faculty of Engineering
1655        "tv", // tv Ministry of Transport, Energy, Communications and Innovations
1656        "tw", // tw Taiwan Network Information Center (TWNIC)
1657        "tz", // tz Tanzania Communications Regulatory Authority
1658        "ua", // ua Hostmaster Ltd.
1659        "ug", // ug Uganda Online Ltd.
1660        "uk", // uk Nominet UK
1661        "us", // us Registry Services, LLC
1662        "uy", // uy SeCIU - Universidad de la Republica
1663        "uz", // uz Single Integrator for Creation and Support of State Information Systems UZINFOCOM
1664        "va", // va Holy See - Vatican City State
1665        "vc", // vc Ministry of Telecommunications, Science, Technology and Industry
1666        "ve", // ve Comisión Nacional de Telecomunicaciones (CONATEL)
1667        "vg", // vg Telecommunications Regulatory Commission of the Virgin Islands
1668        "vi", // vi Virgin Islands Public Telecommunications System, Inc.
1669        "vn", // vn Viet Nam Internet Network Information Center (VNNIC)
1670        "vu", // vu Telecommunications Radiocommunications and Broadcasting Regulator (TRBR)
1671        "wf", // wf Association Française pour le Nommage Internet en Coopération (A.F.N.I.C.)
1672        "ws", // ws Government of Samoa Ministry of Foreign Affairs & Trade
1673        "xn--2scrj9c", // ಭಾರತ National Internet eXchange of India
1674        "xn--3e0b707e", // 한국 KISA (Korea Internet & Security Agency)
1675        "xn--3hcrj9c", // ଭାରତ National Internet eXchange of India
1676        "xn--45br5cyl", // ভাৰত National Internet eXchange of India
1677        "xn--45brj9c", // ভারত National Internet Exchange of India
1678        "xn--4dbrk0ce", // ישראל The Israel Internet Association (RA)
1679        "xn--54b7fta0cc", // বাংলা Posts and Telecommunications Division
1680        "xn--80ao21a", // қаз Association of IT Companies of Kazakhstan
1681        "xn--90a3ac", // срб Serbian National Internet Domain Registry (RNIDS)
1682        "xn--90ae", // бг Imena.BG AD
1683        "xn--90ais", // бел Belarusian Cloud Technologies LLC
1684        "xn--clchc0ea0b2g2a9gcd", // சிங்கப்பூர் Singapore Network Information Centre (SGNIC) Pte Ltd
1685        "xn--d1alf", // мкд Macedonian Academic Research Network Skopje
1686        "xn--e1a4c", // ею EURid vzw
1687        "xn--fiqs8s", // 中国 China Internet Network Information Center (CNNIC)
1688        "xn--fiqz9s", // 中國 China Internet Network Information Center (CNNIC)
1689        "xn--fpcrj9c3d", // భారత్ National Internet Exchange of India
1690        "xn--fzc2c9e2c", // ලංකා LK Domain Registry
1691        "xn--gecrj9c", // ભારત National Internet Exchange of India
1692        "xn--h2breg3eve", // भारतम् National Internet eXchange of India
1693        "xn--h2brj9c", // भारत National Internet Exchange of India
1694        "xn--h2brj9c8c", // भारोत National Internet eXchange of India
1695        "xn--j1amh", // укр Ukrainian Network Information Centre (UANIC), Inc.
1696        "xn--j6w193g", // 香港 Hong Kong Internet Registration Corporation Ltd.
1697        "xn--kprw13d", // 台湾 Taiwan Network Information Center (TWNIC)
1698        "xn--kpry57d", // 台灣 Taiwan Network Information Center (TWNIC)
1699        "xn--l1acc", // мон Datacom Co.,Ltd
1700        "xn--lgbbat1ad8j", // الجزائر CERIST
1701        "xn--mgb9awbf", // عمان Telecommunications Regulatory Authority (TRA)
1702        "xn--mgba3a4f16a", // ایران Institute for Research in Fundamental Sciences (IPM)
1703        "xn--mgbaam7a8h", // امارات Telecommunications and Digital Government Regulatory Authority (TDRA)
1704        "xn--mgbah1a3hjkrd", // موريتانيا Université de Nouakchott Al Aasriya
1705        "xn--mgbai9azgqp6j", // پاکستان National Telecommunication Corporation
1706        "xn--mgbayh7gpa", // الاردن Ministry of Digital Economy and Entrepreneurship (MoDEE)
1707        "xn--mgbbh1a", // بارت National Internet eXchange of India
1708        "xn--mgbbh1a71e", // بھارت National Internet Exchange of India
1709        "xn--mgbc0a9azcg", // المغرب Agence Nationale de Réglementation des Télécommunications (ANRT)
1710        "xn--mgbcpq6gpa1a", // البحرين Telecommunications Regulatory Authority (TRA)
1711        "xn--mgberp4a5d4ar", // السعودية Communications, Space and Technology Commission
1712        "xn--mgbgu82a", // ڀارت National Internet eXchange of India
1713        "xn--mgbpl2fh", // سودان Sudan Internet Society
1714        "xn--mgbtx2b", // عراق Communications and Media Commission (CMC)
1715        "xn--mgbx4cd0ab", // مليسيا MYNIC Berhad
1716        "xn--mix891f", // 澳門 Macao Post and Telecommunications Bureau (CTT)
1717        "xn--node", // გე Information Technologies Development Center (ITDC)
1718        "xn--o3cw4h", // ไทย Thai Network Information Center Foundation
1719        "xn--ogbpf8fl", // سورية National Authority for Information Technology Services (NAITS)
1720        "xn--p1ai", // рф Coordination Center for TLD RU
1721        "xn--pgbs0dh", // تونس Agence Tunisienne d'Internet
1722        "xn--q7ce6a", // ລາວ Lao National Internet Center (LANIC), Ministry of Technology and Communications
1723        "xn--qxa6a", // ευ EURid vzw
1724        "xn--qxam", // ελ ICS-FORTH GR
1725        "xn--rvc1e0am3e", // ഭാരതം National Internet eXchange of India
1726        "xn--s9brj9c", // ਭਾਰਤ National Internet Exchange of India
1727        "xn--wgbh1c", // مصر National Telecommunication Regulatory Authority - NTRA
1728        "xn--wgbl6a", // قطر Communications Regulatory Authority
1729        "xn--xkc2al3hye2a", // இலங்கை LK Domain Registry
1730        "xn--xkc2dl3a5ee0h", // இந்தியா National Internet Exchange of India
1731        "xn--y9a3aq", // հայ "Internet Society" Non-governmental Organization
1732        "xn--yfro4i67o", // 新加坡 Singapore Network Information Centre (SGNIC) Pte Ltd
1733        "xn--ygbi2ammx", // فلسطين Ministry of Telecom & Information Technology (MTIT)
1734        "ye", // ye TeleYemen
1735        "yt", // yt Association Française pour le Nommage Internet en Coopération (A.F.N.I.C.)
1736        "za", // za ZA Domain Name Authority
1737        "zm", // zm Zambia Information and Communications Technology Authority (ZICTA)
1738        "zw", // zw Postal and Telecommunications Regulatory Authority of Zimbabwe (POTRAZ)
1739    };
1740
1741    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1742    private static final String[] LOCAL_TLDS = {
1743       "localdomain",         // Also widely used as localhost.localdomain
1744       "localhost",           // RFC2606 defined
1745    };
1746
1747    // Additional arrays to supplement or override the built in ones.
1748    // The PLUS arrays are valid keys, the MINUS arrays are invalid keys
1749
1750    /*
1751     * This field is used to detect whether the getInstance has been called.
1752     * After this, the method updateTLDOverride is not allowed to be called.
1753     * This field does not need to be volatile since it is only accessed from
1754     * synchronized methods.
1755     */
1756    private static boolean inUse;
1757
1758    /*
1759     * These arrays are mutable, but they don't need to be volatile.
1760     * They can only be updated by the updateTLDOverride method, and any readers must get an instance
1761     * using the getInstance methods which are all (now) synchronised.
1762     */
1763    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1764    private static volatile String[] countryCodeTLDsPlus = EMPTY_STRING_ARRAY;
1765
1766    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1767    private static volatile String[] genericTLDsPlus = EMPTY_STRING_ARRAY;
1768
1769    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1770    private static volatile String[] countryCodeTLDsMinus = EMPTY_STRING_ARRAY;
1771
1772    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1773    private static volatile String[] genericTLDsMinus = EMPTY_STRING_ARRAY;
1774
1775    /**
1776     * enum used by {@link DomainValidator#updateTLDOverride(ArrayType, String[])}
1777     * to determine which override array to update / fetch
1778     * @since 1.5.0
1779     * @since 1.5.1 made public and added read-only array references
1780     */
1781    public enum ArrayType {
1782        /** Update (or get a copy of) the GENERIC_TLDS_PLUS table containing additional generic TLDs */
1783        GENERIC_PLUS,
1784        /** Update (or get a copy of) the GENERIC_TLDS_MINUS table containing deleted generic TLDs */
1785        GENERIC_MINUS,
1786        /** Update (or get a copy of) the COUNTRY_CODE_TLDS_PLUS table containing additional country code TLDs */
1787        COUNTRY_CODE_PLUS,
1788        /** Update (or get a copy of) the COUNTRY_CODE_TLDS_MINUS table containing deleted country code TLDs */
1789        COUNTRY_CODE_MINUS,
1790        /** Get a copy of the generic TLDS table */
1791        GENERIC_RO,
1792        /** Get a copy of the country code table */
1793        COUNTRY_CODE_RO,
1794        /** Get a copy of the infrastructure table */
1795        INFRASTRUCTURE_RO,
1796        /** Get a copy of the local table */
1797        LOCAL_RO
1798    }
1799
1800    // For use by unit test code only
1801    static synchronized void clearTLDOverrides() {
1802        inUse = false;
1803        countryCodeTLDsPlus = EMPTY_STRING_ARRAY;
1804        countryCodeTLDsMinus = EMPTY_STRING_ARRAY;
1805        genericTLDsPlus = EMPTY_STRING_ARRAY;
1806        genericTLDsMinus = EMPTY_STRING_ARRAY;
1807    }
1808
1809    /**
1810     * Update one of the TLD override arrays.
1811     * This must only be done at program startup, before any instances are accessed using getInstance.
1812     * <p>
1813     * For example:
1814     * <p>
1815     * <code>DomainValidator.updateTLDOverride(ArrayType.GENERIC_PLUS, new String[]{"apache"})}</code>
1816     * <p>
1817     * To clear an override array, provide an empty array.
1818     *
1819     * @param table the table to update, see {@link DomainValidator.ArrayType}
1820     * Must be one of the following
1821     * <ul>
1822     * <li>COUNTRY_CODE_MINUS</li>
1823     * <li>COUNTRY_CODE_PLUS</li>
1824     * <li>GENERIC_MINUS</li>
1825     * <li>GENERIC_PLUS</li>
1826     * </ul>
1827     * @param tlds the array of TLDs, must not be null
1828     * @throws IllegalStateException if the method is called after getInstance
1829     * @throws IllegalArgumentException if one of the read-only tables is requested
1830     * @since 1.5.0
1831     */
1832    public static synchronized void updateTLDOverride(ArrayType table, String... tlds) {
1833        if (inUse) {
1834            throw new IllegalStateException("Can only invoke this method before calling getInstance");
1835        }
1836        // Comparisons are always done with lower-case entries
1837        String[] copy = Arrays.stream(tlds)
1838                .map(tld -> tld.toLowerCase(Locale.ENGLISH))
1839                .toArray(String[]::new);
1840        Arrays.sort(copy);
1841        switch (table) {
1842        case COUNTRY_CODE_MINUS:
1843            countryCodeTLDsMinus = copy;
1844            break;
1845        case COUNTRY_CODE_PLUS:
1846            countryCodeTLDsPlus = copy;
1847            break;
1848        case GENERIC_MINUS:
1849            genericTLDsMinus = copy;
1850            break;
1851        case GENERIC_PLUS:
1852            genericTLDsPlus = copy;
1853            break;
1854        case COUNTRY_CODE_RO:
1855        case GENERIC_RO:
1856        case INFRASTRUCTURE_RO:
1857        case LOCAL_RO:
1858            throw new IllegalArgumentException("Cannot update the table: " + table);
1859        }
1860    }
1861
1862    /**
1863     * Get a copy of the internal array.
1864     * @param table the array type (any of the enum values)
1865     * @return a copy of the array
1866     * @throws IllegalArgumentException if the table type is unexpected (should not happen)
1867     * @since 1.5.1
1868     */
1869    public static String[] getTLDEntries(ArrayType table) {
1870        String[] array = null;
1871        switch (table) {
1872        case COUNTRY_CODE_MINUS:
1873            array = countryCodeTLDsMinus;
1874            break;
1875        case COUNTRY_CODE_PLUS:
1876            array = countryCodeTLDsPlus;
1877            break;
1878        case GENERIC_MINUS:
1879            array = genericTLDsMinus;
1880            break;
1881        case GENERIC_PLUS:
1882            array = genericTLDsPlus;
1883            break;
1884        case GENERIC_RO:
1885            array = GENERIC_TLDS;
1886            break;
1887        case COUNTRY_CODE_RO:
1888            array = COUNTRY_CODE_TLDS;
1889            break;
1890        case INFRASTRUCTURE_RO:
1891            array = INFRASTRUCTURE_TLDS;
1892            break;
1893        case LOCAL_RO:
1894            array = LOCAL_TLDS;
1895            break;
1896        }
1897        if (array == null) {
1898            throw new IllegalArgumentException("Unexpected enum value: " + table);
1899        }
1900        return Arrays.copyOf(array, array.length); // clone the array
1901    }
1902
1903    /**
1904     * Converts potentially Unicode input to punycode.
1905     * If conversion fails, returns the original input.
1906     *
1907     * @param input the string to convert, not null
1908     * @return converted input, or original input if conversion fails
1909     */
1910    // Needed by UrlValidator
1911    public static String unicodeToASCII(String input) {
1912        if (isOnlyASCII(input)) { // skip possibly expensive processing
1913            return input;
1914        }
1915        try {
1916            final String ascii = IDN.toASCII(input);
1917            if (IdnBugHolder.IDN_TOASCII_PRESERVES_TRAILING_DOTS) {
1918                return ascii;
1919            }
1920            final int length = input.length();
1921            if (length == 0) { // check there is a last character
1922                return input;
1923            }
1924            // RFC3490 3.1. 1)
1925            //            Whenever dots are used as label separators, the following
1926            //            characters MUST be recognized as dots: U+002E (full stop), U+3002
1927            //            (ideographic full stop), U+FF0E (fullwidth full stop), U+FF61
1928            //            (halfwidth ideographic full stop).
1929            char lastChar = input.charAt(length-1); // fetch original last char
1930            switch (lastChar) {
1931                case '.':      // "." full stop, AKA U+002E
1932                case '\u3002': // ideographic full stop
1933                case '\uFF0E': // fullwidth full stop
1934                case '\uFF61': // halfwidth ideographic full stop
1935                    return ascii + '.'; // restore the missing stop
1936                default:
1937                    return ascii;
1938            }
1939        } catch (IllegalArgumentException e) { // input is not valid
1940            Logging.trace(e);
1941            return input;
1942        }
1943    }
1944
1945    private static final class IdnBugHolder {
1946        private static boolean keepsTrailingDot() {
1947            final String input = "a."; // must be a valid name
1948            return input.equals(IDN.toASCII(input));
1949        }
1950
1951        private static final boolean IDN_TOASCII_PRESERVES_TRAILING_DOTS = keepsTrailingDot();
1952    }
1953
1954    /*
1955     * Check if input contains only ASCII
1956     * Treats null as all ASCII
1957     */
1958    private static boolean isOnlyASCII(String input) {
1959        if (input == null) {
1960            return true;
1961        }
1962        return IntStream.range(0, input.length()).noneMatch(i -> input.charAt(i) > 0x7F); // CHECKSTYLE IGNORE MagicNumber
1963    }
1964
1965    /**
1966     * Check if a sorted array contains the specified key
1967     *
1968     * @param sortedArray the array to search
1969     * @param key the key to find
1970     * @return {@code true} if the array contains the key
1971     */
1972    private static boolean arrayContains(String[] sortedArray, String key) {
1973        return Arrays.binarySearch(sortedArray, key) >= 0;
1974    }
1975}