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;
022
023import org.openstreetmap.josm.tools.Logging;
024
025/**
026 * <p><b>Domain name</b> validation routines.</p>
027 *
028 * <p>
029 * This validator provides methods for validating Internet domain names
030 * and top-level domains.
031 * </p>
032 *
033 * <p>Domain names are evaluated according
034 * to the standards <a href="http://www.ietf.org/rfc/rfc1034.txt">RFC1034</a>,
035 * section 3, and <a href="http://www.ietf.org/rfc/rfc1123.txt">RFC1123</a>,
036 * section 2.1. No accommodation is provided for the specialized needs of
037 * other applications; if the domain name has been URL-encoded, for example,
038 * validation will fail even though the equivalent plaintext version of the
039 * same name would have passed.
040 * </p>
041 *
042 * <p>
043 * Validation is also provided for top-level domains (TLDs) as defined and
044 * maintained by the Internet Assigned Numbers Authority (IANA):
045 * </p>
046 *
047 *   <ul>
048 *     <li>{@link #isValidInfrastructureTld} - validates infrastructure TLDs
049 *         (<code>.arpa</code>, etc.)</li>
050 *     <li>{@link #isValidGenericTld} - validates generic TLDs
051 *         (<code>.com, .org</code>, etc.)</li>
052 *     <li>{@link #isValidCountryCodeTld} - validates country code TLDs
053 *         (<code>.us, .uk, .cn</code>, etc.)</li>
054 *   </ul>
055 *
056 * <p>
057 * (<b>NOTE</b>: This class does not provide IP address lookup for domain names or
058 * methods to ensure that a given domain name matches a specific IP; see
059 * {@link java.net.InetAddress} for that functionality.)
060 * </p>
061 *
062 * @version $Revision: 1740822 $
063 * @since Validator 1.4
064 */
065public final class DomainValidator extends AbstractValidator {
066
067    private static final int MAX_DOMAIN_LENGTH = 253;
068
069    private static final String[] EMPTY_STRING_ARRAY = new String[0];
070
071    // Regular expression strings for hostnames (derived from RFC2396 and RFC 1123)
072
073    // RFC2396: domainlabel   = alphanum | alphanum *( alphanum | "-" ) alphanum
074    // Max 63 characters
075    private static final String DOMAIN_LABEL_REGEX = "\\p{Alnum}(?>[\\p{Alnum}-]{0,61}\\p{Alnum})?";
076
077    // RFC2396 toplabel = alpha | alpha *( alphanum | "-" ) alphanum
078    // Max 63 characters
079    private static final String TOP_LABEL_REGEX = "\\p{Alpha}(?>[\\p{Alnum}-]{0,61}\\p{Alnum})?";
080
081    // RFC2396 hostname = *( domainlabel "." ) toplabel [ "." ]
082    // Note that the regex currently requires both a domain label and a top level label, whereas
083    // the RFC does not. This is because the regex is used to detect if a TLD is present.
084    // If the match fails, input is checked against DOMAIN_LABEL_REGEX (hostnameRegex)
085    // RFC1123 sec 2.1 allows hostnames to start with a digit
086    private static final String DOMAIN_NAME_REGEX =
087            "^(?:" + DOMAIN_LABEL_REGEX + "\\.)+" + "(" + TOP_LABEL_REGEX + ")\\.?$";
088
089    private final boolean allowLocal;
090
091    /**
092     * Singleton instance of this validator, which
093     *  doesn't consider local addresses as valid.
094     */
095    private static final DomainValidator DOMAIN_VALIDATOR = new DomainValidator(false);
096
097    /**
098     * Singleton instance of this validator, which does
099     *  consider local addresses valid.
100     */
101    private static final DomainValidator DOMAIN_VALIDATOR_WITH_LOCAL = new DomainValidator(true);
102
103    /**
104     * RegexValidator for matching domains.
105     */
106    private final RegexValidator domainRegex =
107            new RegexValidator(DOMAIN_NAME_REGEX);
108    /**
109     * RegexValidator for matching a local hostname
110     */
111    // RFC1123 sec 2.1 allows hostnames to start with a digit
112    private final RegexValidator hostnameRegex =
113            new RegexValidator(DOMAIN_LABEL_REGEX);
114
115    /**
116     * Returns the singleton instance of this validator. It
117     *  will not consider local addresses as valid.
118     * @return the singleton instance of this validator
119     */
120    public static synchronized DomainValidator getInstance() {
121        inUse = true;
122        return DOMAIN_VALIDATOR;
123    }
124
125    /**
126     * Returns the singleton instance of this validator,
127     *  with local validation as required.
128     * @param allowLocal Should local addresses be considered valid?
129     * @return the singleton instance of this validator
130     */
131    public static synchronized DomainValidator getInstance(boolean allowLocal) {
132        inUse = true;
133        if (allowLocal) {
134            return DOMAIN_VALIDATOR_WITH_LOCAL;
135        }
136        return DOMAIN_VALIDATOR;
137    }
138
139    /**
140     * Private constructor.
141     * @param allowLocal whether to allow local domains
142     */
143    private DomainValidator(boolean allowLocal) {
144        this.allowLocal = allowLocal;
145    }
146
147    /**
148     * Returns true if the specified <code>String</code> parses
149     * as a valid domain name with a recognized top-level domain.
150     * The parsing is case-insensitive.
151     * @param domain the parameter to check for domain name syntax
152     * @return true if the parameter is a valid domain name
153     */
154    @Override
155    public boolean isValid(String domain) {
156        if (domain == null) {
157            return false;
158        }
159        String asciiDomain = unicodeToASCII(domain);
160        // hosts must be equally reachable via punycode and Unicode
161        // Unicode is never shorter than punycode, so check punycode
162        // if domain did not convert, then it will be caught by ASCII
163        // checks in the regexes below
164        if (asciiDomain.length() > MAX_DOMAIN_LENGTH) {
165            return false;
166        }
167        String[] groups = domainRegex.match(asciiDomain);
168        if (groups != null && groups.length > 0) {
169            return isValidTld(groups[0]);
170        }
171        return allowLocal && hostnameRegex.isValid(asciiDomain);
172    }
173
174    @Override
175    public String getValidatorName() {
176        return null;
177    }
178
179    // package protected for unit test access
180    // must agree with isValid() above
181    boolean isValidDomainSyntax(String domain) {
182        if (domain == null) {
183            return false;
184        }
185        String asciiDomain = unicodeToASCII(domain);
186        // hosts must be equally reachable via punycode and Unicode
187        // Unicode is never shorter than punycode, so check punycode
188        // if domain did not convert, then it will be caught by ASCII
189        // checks in the regexes below
190        if (asciiDomain.length() > MAX_DOMAIN_LENGTH) {
191            return false;
192        }
193        String[] groups = domainRegex.match(asciiDomain);
194        return (groups != null && groups.length > 0)
195                || hostnameRegex.isValid(asciiDomain);
196    }
197
198    /**
199     * Returns true if the specified <code>String</code> matches any
200     * IANA-defined top-level domain. Leading dots are ignored if present.
201     * The search is case-insensitive.
202     * @param tld the parameter to check for TLD status, not null
203     * @return true if the parameter is a TLD
204     */
205    public boolean isValidTld(String tld) {
206        String asciiTld = unicodeToASCII(tld);
207        if (allowLocal && isValidLocalTld(asciiTld)) {
208            return true;
209        }
210        return isValidInfrastructureTld(asciiTld)
211                || isValidGenericTld(asciiTld)
212                || isValidCountryCodeTld(asciiTld);
213    }
214
215    /**
216     * Returns true if the specified <code>String</code> matches any
217     * IANA-defined infrastructure top-level domain. Leading dots are
218     * ignored if present. The search is case-insensitive.
219     * @param iTld the parameter to check for infrastructure TLD status, not null
220     * @return true if the parameter is an infrastructure TLD
221     */
222    public boolean isValidInfrastructureTld(String iTld) {
223        if (iTld == null) return false;
224        final String key = chompLeadingDot(unicodeToASCII(iTld).toLowerCase(Locale.ENGLISH));
225        return arrayContains(INFRASTRUCTURE_TLDS, key);
226    }
227
228    /**
229     * Returns true if the specified <code>String</code> matches any
230     * IANA-defined generic top-level domain. Leading dots are ignored
231     * if present. The search is case-insensitive.
232     * @param gTld the parameter to check for generic TLD status, not null
233     * @return true if the parameter is a generic TLD
234     */
235    public boolean isValidGenericTld(String gTld) {
236        if (gTld == null) return false;
237        final String key = chompLeadingDot(unicodeToASCII(gTld).toLowerCase(Locale.ENGLISH));
238        return (arrayContains(GENERIC_TLDS, key) || arrayContains(genericTLDsPlus, key))
239                && !arrayContains(genericTLDsMinus, key);
240    }
241
242    /**
243     * Returns true if the specified <code>String</code> matches any
244     * IANA-defined country code top-level domain. Leading dots are
245     * ignored if present. The search is case-insensitive.
246     * @param ccTld the parameter to check for country code TLD status, not null
247     * @return true if the parameter is a country code TLD
248     */
249    public boolean isValidCountryCodeTld(String ccTld) {
250        if (ccTld == null) return false;
251        final String key = chompLeadingDot(unicodeToASCII(ccTld).toLowerCase(Locale.ENGLISH));
252        return (arrayContains(COUNTRY_CODE_TLDS, key) || arrayContains(countryCodeTLDsPlus, key))
253                && !arrayContains(countryCodeTLDsMinus, key);
254    }
255
256    /**
257     * Returns true if the specified <code>String</code> matches any
258     * widely used "local" domains (localhost or localdomain). Leading dots are
259     * ignored if present. The search is case-insensitive.
260     * @param lTld the parameter to check for local TLD status, not null
261     * @return true if the parameter is an local TLD
262     */
263    public boolean isValidLocalTld(String lTld) {
264        if (lTld == null) return false;
265        final String key = chompLeadingDot(unicodeToASCII(lTld).toLowerCase(Locale.ENGLISH));
266        return arrayContains(LOCAL_TLDS, key);
267    }
268
269    private static String chompLeadingDot(String str) {
270        if (str.startsWith(".")) {
271            return str.substring(1);
272        }
273        return str;
274    }
275
276    // ---------------------------------------------
277    // ----- TLDs defined by IANA
278    // ----- Authoritative and comprehensive list at:
279    // ----- http://data.iana.org/TLD/tlds-alpha-by-domain.txt
280
281    // Note that the above list is in UPPER case.
282    // The code currently converts strings to lower case (as per the tables below)
283
284    // IANA also provide an HTML list at http://www.iana.org/domains/root/db
285    // Note that this contains several country code entries which are NOT in
286    // the text file. These all have the "Not assigned" in the "Sponsoring Organisation" column
287    // For example (as of 2015-01-02):
288    // .bl  country-code    Not assigned
289    // .um  country-code    Not assigned
290
291    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
292    private static final String[] INFRASTRUCTURE_TLDS = new String[] {
293        "arpa",               // internet infrastructure
294    };
295
296    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
297    private static final String[] GENERIC_TLDS = new String[] {
298        // Taken from Version 2018022400, Last Updated Sat Feb 24 07:07:02 2018 UTC
299        "aaa", // aaa American Automobile Association, Inc.
300        "aarp", // aarp AARP
301        "abarth", // abarth Fiat Chrysler Automobiles N.V.
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 Top Level Domain Holdings Limited
308        "abudhabi", // abudhabi Abu Dhabi Systems and Information Centre
309        "academy", // academy Half Oaks, LLC
310        "accenture", // accenture Accenture plc
311        "accountant", // accountant dot Accountant Limited
312        "accountants", // accountants Knob Town, LLC
313        "aco", // aco ACO Severin Ahlmann GmbH &amp; Co. KG
314        "active", // active The Active Network, Inc
315        "actor", // actor United TLD Holdco Ltd.
316        "adac", // adac Allgemeiner Deutscher Automobil-Club e.V. (ADAC)
317        "ads", // ads Charleston Road Registry Inc.
318        "adult", // adult ICM Registry AD LLC
319        "aeg", // aeg Aktiebolaget Electrolux
320        "aero", // aero Societe Internationale de Telecommunications Aeronautique (SITA INC USA)
321        "aetna", // aetna Aetna Life Insurance Company
322        "afamilycompany", // afamilycompany Johnson Shareholdings, Inc.
323        "afl", // afl Australian Football League
324        "africa", // africa ZA Central Registry NPC trading as Registry.Africa
325        "agakhan", // agakhan Fondation Aga Khan (Aga Khan Foundation)
326        "agency", // agency Steel Falls, LLC
327        "aig", // aig American International Group, Inc.
328        "aigo", // aigo aigo Digital Technology Co,Ltd.
329        "airbus", // airbus Airbus S.A.S.
330        "airforce", // airforce United TLD Holdco Ltd.
331        "airtel", // airtel Bharti Airtel Limited
332        "akdn", // akdn Fondation Aga Khan (Aga Khan Foundation)
333        "alfaromeo", // alfaromeo Fiat Chrysler Automobiles N.V.
334        "alibaba", // alibaba Alibaba Group Holding Limited
335        "alipay", // alipay Alibaba Group Holding Limited
336        "allfinanz", // allfinanz Allfinanz Deutsche Vermögensberatung Aktiengesellschaft
337        "allstate", // allstate Allstate Fire and Casualty Insurance Company
338        "ally", // ally Ally Financial Inc.
339        "alsace", // alsace REGION D ALSACE
340        "alstom", // alstom ALSTOM
341        "americanexpress", // americanexpress American Express Travel Related Services Company, Inc.
342        "americanfamily", // americanfamily AmFam, Inc.
343        "amex", // amex American Express Travel Related Services Company, Inc.
344        "amfam", // amfam AmFam, Inc.
345        "amica", // amica Amica Mutual Insurance Company
346        "amsterdam", // amsterdam Gemeente Amsterdam
347        "analytics", // analytics Campus IP LLC
348        "android", // android Charleston Road Registry Inc.
349        "anquan", // anquan QIHOO 360 TECHNOLOGY CO. LTD.
350        "anz", // anz Australia and New Zealand Banking Group Limited
351        "aol", // aol AOL Inc.
352        "apartments", // apartments June Maple, LLC
353        "app", // app Charleston Road Registry Inc.
354        "apple", // apple Apple Inc.
355        "aquarelle", // aquarelle Aquarelle.com
356        "arab", // arab League of Arab States
357        "aramco", // aramco Aramco Services Company
358        "archi", // archi STARTING DOT LIMITED
359        "army", // army United TLD Holdco Ltd.
360        "art", // art UK Creative Ideas Limited
361        "arte", // arte Association Relative à la Télévision Européenne G.E.I.E.
362        "asda", // asda Wal-Mart Stores, Inc.
363        "asia", // asia DotAsia Organisation Ltd.
364        "associates", // associates Baxter Hill, LLC
365        "athleta", // athleta The Gap, Inc.
366        "attorney", // attorney United TLD Holdco, Ltd
367        "auction", // auction United TLD HoldCo, Ltd.
368        "audi", // audi AUDI Aktiengesellschaft
369        "audible", // audible Amazon Registry Service, Inc.
370        "audio", // audio Uniregistry, Corp.
371        "auspost", // auspost Australian Postal Corporation
372        "author", // author Amazon Registry Services, Inc.
373        "auto", // auto Uniregistry, Corp.
374        "autos", // autos DERAutos, LLC
375        "avianca", // avianca Aerovias del Continente Americano S.A. Avianca
376        "aws", // aws Amazon Registry Services, Inc.
377        "axa", // axa AXA SA
378        "azure", // azure Microsoft Corporation
379        "baby", // baby Johnson &amp; Johnson Services, Inc.
380        "baidu", // baidu Baidu, Inc.
381        "banamex", // banamex Citigroup Inc.
382        "bananarepublic", // bananarepublic The Gap, Inc.
383        "band", // band United TLD Holdco, Ltd
384        "bank", // bank fTLD Registry Services, LLC
385        "bar", // bar Punto 2012 Sociedad Anonima Promotora de Inversion de Capital Variable
386        "barcelona", // barcelona Municipi de Barcelona
387        "barclaycard", // barclaycard Barclays Bank PLC
388        "barclays", // barclays Barclays Bank PLC
389        "barefoot", // barefoot Gallo Vineyards, Inc.
390        "bargains", // bargains Half Hallow, LLC
391        "baseball", // baseball MLB Advanced Media DH, LLC
392        "basketball", // basketball Fédération Internationale de Basketball (FIBA)
393        "bauhaus", // bauhaus Werkhaus GmbH
394        "bayern", // bayern Bayern Connect GmbH
395        "bbc", // bbc British Broadcasting Corporation
396        "bbt", // bbt BB&amp;T Corporation
397        "bbva", // bbva BANCO BILBAO VIZCAYA ARGENTARIA, S.A.
398        "bcg", // bcg The Boston Consulting Group, Inc.
399        "bcn", // bcn Municipi de Barcelona
400        "beats", // beats Beats Electronics, LLC
401        "beauty", // beauty L&#39;Oréal
402        "beer", // beer Top Level Domain Holdings Limited
403        "bentley", // bentley Bentley Motors Limited
404        "berlin", // berlin dotBERLIN GmbH &amp; Co. KG
405        "best", // best BestTLD Pty Ltd
406        "bestbuy", // bestbuy BBY Solutions, Inc.
407        "bet", // bet Afilias plc
408        "bharti", // bharti Bharti Enterprises (Holding) Private Limited
409        "bible", // bible American Bible Society
410        "bid", // bid dot Bid Limited
411        "bike", // bike Grand Hollow, LLC
412        "bing", // bing Microsoft Corporation
413        "bingo", // bingo Sand Cedar, LLC
414        "bio", // bio STARTING DOT LIMITED
415        "biz", // biz Neustar, Inc.
416        "black", // black Afilias Limited
417        "blackfriday", // blackfriday Uniregistry, Corp.
418        "blanco", // blanco BLANCO GmbH + Co KG
419        "blockbuster", // blockbuster Dish DBS Corporation
420        "blog", // blog Knock Knock WHOIS There, LLC
421        "bloomberg", // bloomberg Bloomberg IP Holdings LLC
422        "blue", // blue Afilias Limited
423        "bms", // bms Bristol-Myers Squibb Company
424        "bmw", // bmw Bayerische Motoren Werke Aktiengesellschaft
425        "bnl", // bnl Banca Nazionale del Lavoro
426        "bnpparibas", // bnpparibas BNP Paribas
427        "boats", // boats DERBoats, LLC
428        "boehringer", // boehringer Boehringer Ingelheim International GmbH
429        "bofa", // bofa NMS Services, Inc.
430        "bom", // bom Núcleo de Informação e Coordenação do Ponto BR - NIC.br
431        "bond", // bond Bond University Limited
432        "boo", // boo Charleston Road Registry Inc.
433        "book", // book Amazon Registry Services, Inc.
434        "booking", // booking Booking.com B.V.
435        "boots", // boots THE BOOTS COMPANY PLC
436        "bosch", // bosch Robert Bosch GMBH
437        "bostik", // bostik Bostik SA
438        "boston", // boston Boston TLD Management, LLC
439        "bot", // bot Amazon Registry Services, Inc.
440        "boutique", // boutique Over Galley, LLC
441        "box", // box NS1 Limited
442        "bradesco", // bradesco Banco Bradesco S.A.
443        "bridgestone", // bridgestone Bridgestone Corporation
444        "broadway", // broadway Celebrate Broadway, Inc.
445        "broker", // broker DOTBROKER REGISTRY LTD
446        "brother", // brother Brother Industries, Ltd.
447        "brussels", // brussels DNS.be vzw
448        "budapest", // budapest Top Level Domain Holdings Limited
449        "bugatti", // bugatti Bugatti International SA
450        "build", // build Plan Bee LLC
451        "builders", // builders Atomic Madison, LLC
452        "business", // business Spring Cross, LLC
453        "buy", // buy Amazon Registry Services, INC
454        "buzz", // buzz DOTSTRATEGY CO.
455        "bzh", // bzh Association www.bzh
456        "cab", // cab Half Sunset, LLC
457        "cafe", // cafe Pioneer Canyon, LLC
458        "cal", // cal Charleston Road Registry Inc.
459        "call", // call Amazon Registry Services, Inc.
460        "calvinklein", // calvinklein PVH gTLD Holdings LLC
461        "cam", // cam AC Webconnecting Holding B.V.
462        "camera", // camera Atomic Maple, LLC
463        "camp", // camp Delta Dynamite, LLC
464        "cancerresearch", // cancerresearch Australian Cancer Research Foundation
465        "canon", // canon Canon Inc.
466        "capetown", // capetown ZA Central Registry NPC trading as ZA Central Registry
467        "capital", // capital Delta Mill, LLC
468        "capitalone", // capitalone Capital One Financial Corporation
469        "car", // car Cars Registry Limited
470        "caravan", // caravan Caravan International, Inc.
471        "cards", // cards Foggy Hollow, LLC
472        "care", // care Goose Cross, LLC
473        "career", // career dotCareer LLC
474        "careers", // careers Wild Corner, LLC
475        "cars", // cars Uniregistry, Corp.
476        "cartier", // cartier Richemont DNS Inc.
477        "casa", // casa Top Level Domain Holdings Limited
478        "case", // case CNH Industrial N.V.
479        "caseih", // caseih CNH Industrial N.V.
480        "cash", // cash Delta Lake, LLC
481        "casino", // casino Binky Sky, LLC
482        "cat", // cat Fundacio puntCAT
483        "catering", // catering New Falls. LLC
484        "catholic", // catholic Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
485        "cba", // cba COMMONWEALTH BANK OF AUSTRALIA
486        "cbn", // cbn The Christian Broadcasting Network, Inc.
487        "cbre", // cbre CBRE, Inc.
488        "cbs", // cbs CBS Domains Inc.
489        "ceb", // ceb The Corporate Executive Board Company
490        "center", // center Tin Mill, LLC
491        "ceo", // ceo CEOTLD Pty Ltd
492        "cern", // cern European Organization for Nuclear Research (&quot;CERN&quot;)
493        "cfa", // cfa CFA Institute
494        "cfd", // cfd DOTCFD REGISTRY LTD
495        "chanel", // chanel Chanel International B.V.
496        "channel", // channel Charleston Road Registry Inc.
497        "chase", // chase JPMorgan Chase &amp; Co.
498        "chat", // chat Sand Fields, LLC
499        "cheap", // cheap Sand Cover, LLC
500        "chintai", // chintai CHINTAI Corporation
501        "christmas", // christmas Uniregistry, Corp.
502        "chrome", // chrome Charleston Road Registry Inc.
503        "chrysler", // chrysler FCA US LLC.
504        "church", // church Holly Fileds, LLC
505        "cipriani", // cipriani Hotel Cipriani Srl
506        "circle", // circle Amazon Registry Services, Inc.
507        "cisco", // cisco Cisco Technology, Inc.
508        "citadel", // citadel Citadel Domain LLC
509        "citi", // citi Citigroup Inc.
510        "citic", // citic CITIC Group Corporation
511        "city", // city Snow Sky, LLC
512        "cityeats", // cityeats Lifestyle Domain Holdings, Inc.
513        "claims", // claims Black Corner, LLC
514        "cleaning", // cleaning Fox Shadow, LLC
515        "click", // click Uniregistry, Corp.
516        "clinic", // clinic Goose Park, LLC
517        "clinique", // clinique The Estée Lauder Companies Inc.
518        "clothing", // clothing Steel Lake, LLC
519        "cloud", // cloud ARUBA S.p.A.
520        "club", // club .CLUB DOMAINS, LLC
521        "clubmed", // clubmed Club Méditerranée S.A.
522        "coach", // coach Koko Island, LLC
523        "codes", // codes Puff Willow, LLC
524        "coffee", // coffee Trixy Cover, LLC
525        "college", // college XYZ.COM LLC
526        "cologne", // cologne NetCologne Gesellschaft für Telekommunikation mbH
527        "com", // com VeriSign Global Registry Services
528        "comcast", // comcast Comcast IP Holdings I, LLC
529        "commbank", // commbank COMMONWEALTH BANK OF AUSTRALIA
530        "community", // community Fox Orchard, LLC
531        "company", // company Silver Avenue, LLC
532        "compare", // compare iSelect Ltd
533        "computer", // computer Pine Mill, LLC
534        "comsec", // comsec VeriSign, Inc.
535        "condos", // condos Pine House, LLC
536        "construction", // construction Fox Dynamite, LLC
537        "consulting", // consulting United TLD Holdco, LTD.
538        "contact", // contact Top Level Spectrum, Inc.
539        "contractors", // contractors Magic Woods, LLC
540        "cooking", // cooking Top Level Domain Holdings Limited
541        "cookingchannel", // cookingchannel Lifestyle Domain Holdings, Inc.
542        "cool", // cool Koko Lake, LLC
543        "coop", // coop DotCooperation LLC
544        "corsica", // corsica Collectivité Territoriale de Corse
545        "country", // country Top Level Domain Holdings Limited
546        "coupon", // coupon Amazon Registry Services, Inc.
547        "coupons", // coupons Black Island, LLC
548        "courses", // courses OPEN UNIVERSITIES AUSTRALIA PTY LTD
549        "credit", // credit Snow Shadow, LLC
550        "creditcard", // creditcard Binky Frostbite, LLC
551        "creditunion", // creditunion CUNA Performance Resources, LLC
552        "cricket", // cricket dot Cricket Limited
553        "crown", // crown Crown Equipment Corporation
554        "crs", // crs Federated Co-operatives Limited
555        "cruise", // cruise Viking River Cruises (Bermuda) Ltd.
556        "cruises", // cruises Spring Way, LLC
557        "csc", // csc Alliance-One Services, Inc.
558        "cuisinella", // cuisinella SALM S.A.S.
559        "cymru", // cymru Nominet UK
560        "cyou", // cyou Beijing Gamease Age Digital Technology Co., Ltd.
561        "dabur", // dabur Dabur India Limited
562        "dad", // dad Charleston Road Registry Inc.
563        "dance", // dance United TLD Holdco Ltd.
564        "data", // data Dish DBS Corporation
565        "date", // date dot Date Limited
566        "dating", // dating Pine Fest, LLC
567        "datsun", // datsun NISSAN MOTOR CO., LTD.
568        "day", // day Charleston Road Registry Inc.
569        "dclk", // dclk Charleston Road Registry Inc.
570        "dds", // dds Minds + Machines Group Limited
571        "deal", // deal Amazon Registry Service, Inc.
572        "dealer", // dealer Dealer Dot Com, Inc.
573        "deals", // deals Sand Sunset, LLC
574        "degree", // degree United TLD Holdco, Ltd
575        "delivery", // delivery Steel Station, LLC
576        "dell", // dell Dell Inc.
577        "deloitte", // deloitte Deloitte Touche Tohmatsu
578        "delta", // delta Delta Air Lines, Inc.
579        "democrat", // democrat United TLD Holdco Ltd.
580        "dental", // dental Tin Birch, LLC
581        "dentist", // dentist United TLD Holdco, Ltd
582        "desi", // desi Desi Networks LLC
583        "design", // design Top Level Design, LLC
584        "dev", // dev Charleston Road Registry Inc.
585        "dhl", // dhl Deutsche Post AG
586        "diamonds", // diamonds John Edge, LLC
587        "diet", // diet Uniregistry, Corp.
588        "digital", // digital Dash Park, LLC
589        "direct", // direct Half Trail, LLC
590        "directory", // directory Extra Madison, LLC
591        "discount", // discount Holly Hill, LLC
592        "discover", // discover Discover Financial Services
593        "dish", // dish Dish DBS Corporation
594        "diy", // diy Lifestyle Domain Holdings, Inc.
595        "dnp", // dnp Dai Nippon Printing Co., Ltd.
596        "docs", // docs Charleston Road Registry Inc.
597        "doctor", // doctor Brice Trail, LLC
598        "dodge", // dodge FCA US LLC.
599        "dog", // dog Koko Mill, LLC
600        "doha", // doha Communications Regulatory Authority (CRA)
601        "domains", // domains Sugar Cross, LLC
602        "dot", // dot Dish DBS Corporation
603        "download", // download dot Support Limited
604        "drive", // drive Charleston Road Registry Inc.
605        "dtv", // dtv Dish DBS Corporation
606        "dubai", // dubai Dubai Smart Government Department
607        "duck", // duck Johnson Shareholdings, Inc.
608        "dunlop", // dunlop The Goodyear Tire &amp; Rubber Company
609        "duns", // duns The Dun &amp; Bradstreet Corporation
610        "dupont", // dupont E. I. du Pont de Nemours and Company
611        "durban", // durban ZA Central Registry NPC trading as ZA Central Registry
612        "dvag", // dvag Deutsche Vermögensberatung Aktiengesellschaft DVAG
613        "dvr", // dvr Hughes Satellite Systems Corporation
614        "earth", // earth Interlink Co., Ltd.
615        "eat", // eat Charleston Road Registry Inc.
616        "eco", // eco Big Room Inc.
617        "edeka", // edeka EDEKA Verband kaufmännischer Genossenschaften e.V.
618        "edu", // edu EDUCAUSE
619        "education", // education Brice Way, LLC
620        "email", // email Spring Madison, LLC
621        "emerck", // emerck Merck KGaA
622        "energy", // energy Binky Birch, LLC
623        "engineer", // engineer United TLD Holdco Ltd.
624        "engineering", // engineering Romeo Canyon
625        "enterprises", // enterprises Snow Oaks, LLC
626        "epost", // epost Deutsche Post AG
627        "epson", // epson Seiko Epson Corporation
628        "equipment", // equipment Corn Station, LLC
629        "ericsson", // ericsson Telefonaktiebolaget L M Ericsson
630        "erni", // erni ERNI Group Holding AG
631        "esq", // esq Charleston Road Registry Inc.
632        "estate", // estate Trixy Park, LLC
633        "esurance", // esurance Esurance Insurance Company
634        "etisalat", // etisalat Emirates Telecommunications Corporation (trading as Etisalat)
635        "eurovision", // eurovision European Broadcasting Union (EBU)
636        "eus", // eus Puntueus Fundazioa
637        "events", // events Pioneer Maple, LLC
638        "everbank", // everbank EverBank
639        "exchange", // exchange Spring Falls, LLC
640        "expert", // expert Magic Pass, LLC
641        "exposed", // exposed Victor Beach, LLC
642        "express", // express Sea Sunset, LLC
643        "extraspace", // extraspace Extra Space Storage LLC
644        "fage", // fage Fage International S.A.
645        "fail", // fail Atomic Pipe, LLC
646        "fairwinds", // fairwinds FairWinds Partners, LLC
647        "faith", // faith dot Faith Limited
648        "family", // family United TLD Holdco Ltd.
649        "fan", // fan Asiamix Digital Ltd
650        "fans", // fans Asiamix Digital Limited
651        "farm", // farm Just Maple, LLC
652        "farmers", // farmers Farmers Insurance Exchange
653        "fashion", // fashion Top Level Domain Holdings Limited
654        "fast", // fast Amazon Registry Services, Inc.
655        "fedex", // fedex Federal Express Corporation
656        "feedback", // feedback Top Level Spectrum, Inc.
657        "ferrari", // ferrari Fiat Chrysler Automobiles N.V.
658        "ferrero", // ferrero Ferrero Trading Lux S.A.
659        "fiat", // fiat Fiat Chrysler Automobiles N.V.
660        "fidelity", // fidelity Fidelity Brokerage Services LLC
661        "fido", // fido Rogers Communications Canada Inc.
662        "film", // film Motion Picture Domain Registry Pty Ltd
663        "final", // final Núcleo de Informação e Coordenação do Ponto BR - NIC.br
664        "finance", // finance Cotton Cypress, LLC
665        "financial", // financial Just Cover, LLC
666        "fire", // fire Amazon Registry Service, Inc.
667        "firestone", // firestone Bridgestone Corporation
668        "firmdale", // firmdale Firmdale Holdings Limited
669        "fish", // fish Fox Woods, LLC
670        "fishing", // fishing Top Level Domain Holdings Limited
671        "fit", // fit Minds + Machines Group Limited
672        "fitness", // fitness Brice Orchard, LLC
673        "flickr", // flickr Yahoo! Domain Services Inc.
674        "flights", // flights Fox Station, LLC
675        "flir", // flir FLIR Systems, Inc.
676        "florist", // florist Half Cypress, LLC
677        "flowers", // flowers Uniregistry, Corp.
678        "fly", // fly Charleston Road Registry Inc.
679        "foo", // foo Charleston Road Registry Inc.
680        "food", // food Lifestyle Domain Holdings, Inc.
681        "foodnetwork", // foodnetwork Lifestyle Domain Holdings, Inc.
682        "football", // football Foggy Farms, LLC
683        "ford", // ford Ford Motor Company
684        "forex", // forex DOTFOREX REGISTRY LTD
685        "forsale", // forsale United TLD Holdco, LLC
686        "forum", // forum Fegistry, LLC
687        "foundation", // foundation John Dale, LLC
688        "fox", // fox FOX Registry, LLC
689        "free", // free Amazon Registry Services, Inc.
690        "fresenius", // fresenius Fresenius Immobilien-Verwaltungs-GmbH
691        "frl", // frl FRLregistry B.V.
692        "frogans", // frogans OP3FT
693        "frontdoor", // frontdoor Lifestyle Domain Holdings, Inc.
694        "frontier", // frontier Frontier Communications Corporation
695        "ftr", // ftr Frontier Communications Corporation
696        "fujitsu", // fujitsu Fujitsu Limited
697        "fujixerox", // fujixerox Xerox DNHC LLC
698        "fun", // fun DotSpace, Inc.
699        "fund", // fund John Castle, LLC
700        "furniture", // furniture Lone Fields, LLC
701        "futbol", // futbol United TLD Holdco, Ltd.
702        "fyi", // fyi Silver Tigers, LLC
703        "gal", // gal Asociación puntoGAL
704        "gallery", // gallery Sugar House, LLC
705        "gallo", // gallo Gallo Vineyards, Inc.
706        "gallup", // gallup Gallup, Inc.
707        "game", // game Uniregistry, Corp.
708        "games", // games United TLD Holdco Ltd.
709        "gap", // gap The Gap, Inc.
710        "garden", // garden Top Level Domain Holdings Limited
711        "gbiz", // gbiz Charleston Road Registry Inc.
712        "gdn", // gdn Joint Stock Company "Navigation-information systems"
713        "gea", // gea GEA Group Aktiengesellschaft
714        "gent", // gent COMBELL GROUP NV/SA
715        "genting", // genting Resorts World Inc. Pte. Ltd.
716        "george", // george Wal-Mart Stores, Inc.
717        "ggee", // ggee GMO Internet, Inc.
718        "gift", // gift Uniregistry, Corp.
719        "gifts", // gifts Goose Sky, LLC
720        "gives", // gives United TLD Holdco Ltd.
721        "giving", // giving Giving Limited
722        "glade", // glade Johnson Shareholdings, Inc.
723        "glass", // glass Black Cover, LLC
724        "gle", // gle Charleston Road Registry Inc.
725        "global", // global Dot Global Domain Registry Limited
726        "globo", // globo Globo Comunicação e Participações S.A
727        "gmail", // gmail Charleston Road Registry Inc.
728        "gmbh", // gmbh Extra Dynamite, LLC
729        "gmo", // gmo GMO Internet, Inc.
730        "gmx", // gmx 1&amp;1 Mail &amp; Media GmbH
731        "godaddy", // godaddy Go Daddy East, LLC
732        "gold", // gold June Edge, LLC
733        "goldpoint", // goldpoint YODOBASHI CAMERA CO.,LTD.
734        "golf", // golf Lone Falls, LLC
735        "goo", // goo NTT Resonant Inc.
736        "goodhands", // goodhands Allstate Fire and Casualty Insurance Company
737        "goodyear", // goodyear The Goodyear Tire &amp; Rubber Company
738        "goog", // goog Charleston Road Registry Inc.
739        "google", // google Charleston Road Registry Inc.
740        "gop", // gop Republican State Leadership Committee, Inc.
741        "got", // got Amazon Registry Services, Inc.
742        "gov", // gov General Services Administration Attn: QTDC, 2E08 (.gov Domain Registration)
743        "grainger", // grainger Grainger Registry Services, LLC
744        "graphics", // graphics Over Madison, LLC
745        "gratis", // gratis Pioneer Tigers, LLC
746        "green", // green Afilias Limited
747        "gripe", // gripe Corn Sunset, LLC
748        "grocery", // grocery Wal-Mart Stores, Inc.
749        "group", // group Romeo Town, LLC
750        "guardian", // guardian The Guardian Life Insurance Company of America
751        "gucci", // gucci Guccio Gucci S.p.a.
752        "guge", // guge Charleston Road Registry Inc.
753        "guide", // guide Snow Moon, LLC
754        "guitars", // guitars Uniregistry, Corp.
755        "guru", // guru Pioneer Cypress, LLC
756        "hair", // hair L&#39;Oreal
757        "hamburg", // hamburg Hamburg Top-Level-Domain GmbH
758        "hangout", // hangout Charleston Road Registry Inc.
759        "haus", // haus United TLD Holdco, LTD.
760        "hbo", // hbo HBO Registry Services, Inc.
761        "hdfc", // hdfc HOUSING DEVELOPMENT FINANCE CORPORATION LIMITED
762        "hdfcbank", // hdfcbank HDFC Bank Limited
763        "health", // health DotHealth, LLC
764        "healthcare", // healthcare Silver Glen, LLC
765        "help", // help Uniregistry, Corp.
766        "helsinki", // helsinki City of Helsinki
767        "here", // here Charleston Road Registry Inc.
768        "hermes", // hermes Hermes International
769        "hgtv", // hgtv Lifestyle Domain Holdings, Inc.
770        "hiphop", // hiphop Uniregistry, Corp.
771        "hisamitsu", // hisamitsu Hisamitsu Pharmaceutical Co.,Inc.
772        "hitachi", // hitachi Hitachi, Ltd.
773        "hiv", // hiv dotHIV gemeinnuetziger e.V.
774        "hkt", // hkt PCCW-HKT DataCom Services Limited
775        "hockey", // hockey Half Willow, LLC
776        "holdings", // holdings John Madison, LLC
777        "holiday", // holiday Goose Woods, LLC
778        "homedepot", // homedepot Homer TLC, Inc.
779        "homegoods", // homegoods The TJX Companies, Inc.
780        "homes", // homes DERHomes, LLC
781        "homesense", // homesense The TJX Companies, Inc.
782        "honda", // honda Honda Motor Co., Ltd.
783        "honeywell", // honeywell Honeywell GTLD LLC
784        "horse", // horse Top Level Domain Holdings Limited
785        "hospital", // hospital Ruby Pike, LLC
786        "host", // host DotHost Inc.
787        "hosting", // hosting Uniregistry, Corp.
788        "hot", // hot Amazon Registry Services, Inc.
789        "hoteles", // hoteles Travel Reservations SRL
790        "hotels", // hotels Booking.com B.V.
791        "hotmail", // hotmail Microsoft Corporation
792        "house", // house Sugar Park, LLC
793        "how", // how Charleston Road Registry Inc.
794        "hsbc", // hsbc HSBC Holdings PLC
795        "hughes", // hughes Hughes Satellite Systems Corporation
796        "hyatt", // hyatt Hyatt GTLD, L.L.C.
797        "hyundai", // hyundai Hyundai Motor Company
798        "ibm", // ibm International Business Machines Corporation
799        "icbc", // icbc Industrial and Commercial Bank of China Limited
800        "ice", // ice IntercontinentalExchange, Inc.
801        "icu", // icu One.com A/S
802        "ieee", // ieee IEEE Global LLC
803        "ifm", // ifm ifm electronic gmbh
804        "ikano", // ikano Ikano S.A.
805        "imamat", // imamat Fondation Aga Khan (Aga Khan Foundation)
806        "imdb", // imdb Amazon Registry Service, Inc.
807        "immo", // immo Auburn Bloom, LLC
808        "immobilien", // immobilien United TLD Holdco Ltd.
809        "industries", // industries Outer House, LLC
810        "infiniti", // infiniti NISSAN MOTOR CO., LTD.
811        "info", // info Afilias Limited
812        "ing", // ing Charleston Road Registry Inc.
813        "ink", // ink Top Level Design, LLC
814        "institute", // institute Outer Maple, LLC
815        "insurance", // insurance fTLD Registry Services LLC
816        "insure", // insure Pioneer Willow, LLC
817        "int", // int Internet Assigned Numbers Authority
818        "intel", // intel Intel Corporation
819        "international", // international Wild Way, LLC
820        "intuit", // intuit Intuit Administrative Services, Inc.
821        "investments", // investments Holly Glen, LLC
822        "ipiranga", // ipiranga Ipiranga Produtos de Petroleo S.A.
823        "irish", // irish Dot-Irish LLC
824        "iselect", // iselect iSelect Ltd
825        "ismaili", // ismaili Fondation Aga Khan (Aga Khan Foundation)
826        "ist", // ist Istanbul Metropolitan Municipality
827        "istanbul", // istanbul Istanbul Metropolitan Municipality / Medya A.S.
828        "itau", // itau Itau Unibanco Holding S.A.
829        "itv", // itv ITV Services Limited
830        "iveco", // iveco CNH Industrial N.V.
831        "iwc", // iwc Richemont DNS Inc.
832        "jaguar", // jaguar Jaguar Land Rover Ltd
833        "java", // java Oracle Corporation
834        "jcb", // jcb JCB Co., Ltd.
835        "jcp", // jcp JCP Media, Inc.
836        "jeep", // jeep FCA US LLC.
837        "jetzt", // jetzt New TLD Company AB
838        "jewelry", // jewelry Wild Bloom, LLC
839        "jio", // jio Affinity Names, Inc.
840        "jlc", // jlc Richemont DNS Inc.
841        "jll", // jll Jones Lang LaSalle Incorporated
842        "jmp", // jmp Matrix IP LLC
843        "jnj", // jnj Johnson &amp; Johnson Services, Inc.
844        "jobs", // jobs Employ Media LLC
845        "joburg", // joburg ZA Central Registry NPC trading as ZA Central Registry
846        "jot", // jot Amazon Registry Services, Inc.
847        "joy", // joy Amazon Registry Services, Inc.
848        "jpmorgan", // jpmorgan JPMorgan Chase &amp; Co.
849        "jprs", // jprs Japan Registry Services Co., Ltd.
850        "juegos", // juegos Uniregistry, Corp.
851        "juniper", // juniper JUNIPER NETWORKS, INC.
852        "kaufen", // kaufen United TLD Holdco Ltd.
853        "kddi", // kddi KDDI CORPORATION
854        "kerryhotels", // kerryhotels Kerry Trading Co. Limited
855        "kerrylogistics", // kerrylogistics Kerry Trading Co. Limited
856        "kerryproperties", // kerryproperties Kerry Trading Co. Limited
857        "kfh", // kfh Kuwait Finance House
858        "kia", // kia KIA MOTORS CORPORATION
859        "kim", // kim Afilias Limited
860        "kinder", // kinder Ferrero Trading Lux S.A.
861        "kindle", // kindle Amazon Registry Service, Inc.
862        "kitchen", // kitchen Just Goodbye, LLC
863        "kiwi", // kiwi DOT KIWI LIMITED
864        "koeln", // koeln NetCologne Gesellschaft für Telekommunikation mbH
865        "komatsu", // komatsu Komatsu Ltd.
866        "kosher", // kosher Kosher Marketing Assets LLC
867        "kpmg", // kpmg KPMG International Cooperative (KPMG International Genossenschaft)
868        "kpn", // kpn Koninklijke KPN N.V.
869        "krd", // krd KRG Department of Information Technology
870        "kred", // kred KredTLD Pty Ltd
871        "kuokgroup", // kuokgroup Kerry Trading Co. Limited
872        "kyoto", // kyoto Academic Institution: Kyoto Jyoho Gakuen
873        "lacaixa", // lacaixa CAIXA D&#39;ESTALVIS I PENSIONS DE BARCELONA
874        "ladbrokes", // ladbrokes LADBROKES INTERNATIONAL PLC
875        "lamborghini", // lamborghini Automobili Lamborghini S.p.A.
876        "lamer", // lamer The Estée Lauder Companies Inc.
877        "lancaster", // lancaster LANCASTER
878        "lancia", // lancia Fiat Chrysler Automobiles N.V.
879        "lancome", // lancome L&#39;Oréal
880        "land", // land Pine Moon, LLC
881        "landrover", // landrover Jaguar Land Rover Ltd
882        "lanxess", // lanxess LANXESS Corporation
883        "lasalle", // lasalle Jones Lang LaSalle Incorporated
884        "lat", // lat ECOM-LAC Federación de Latinoamérica y el Caribe para Internet y el Comercio Electrónico
885        "latino", // latino Dish DBS Corporation
886        "latrobe", // latrobe La Trobe University
887        "law", // law Minds + Machines Group Limited
888        "lawyer", // lawyer United TLD Holdco, Ltd
889        "lds", // lds IRI Domain Management, LLC
890        "lease", // lease Victor Trail, LLC
891        "leclerc", // leclerc A.C.D. LEC Association des Centres Distributeurs Edouard Leclerc
892        "lefrak", // lefrak LeFrak Organization, Inc.
893        "legal", // legal Blue Falls, LLC
894        "lego", // lego LEGO Juris A/S
895        "lexus", // lexus TOYOTA MOTOR CORPORATION
896        "lgbt", // lgbt Afilias Limited
897        "liaison", // liaison Liaison Technologies, Incorporated
898        "lidl", // lidl Schwarz Domains und Services GmbH &amp; Co. KG
899        "life", // life Trixy Oaks, LLC
900        "lifeinsurance", // lifeinsurance American Council of Life Insurers
901        "lifestyle", // lifestyle Lifestyle Domain Holdings, Inc.
902        "lighting", // lighting John McCook, LLC
903        "like", // like Amazon Registry Services, Inc.
904        "lilly", // lilly Eli Lilly and Company
905        "limited", // limited Big Fest, LLC
906        "limo", // limo Hidden Frostbite, LLC
907        "lincoln", // lincoln Ford Motor Company
908        "linde", // linde Linde Aktiengesellschaft
909        "link", // link Uniregistry, Corp.
910        "lipsy", // lipsy Lipsy Ltd
911        "live", // live United TLD Holdco Ltd.
912        "living", // living Lifestyle Domain Holdings, Inc.
913        "lixil", // lixil LIXIL Group Corporation
914        "llc", // llc Afilias plc
915        "loan", // loan dot Loan Limited
916        "loans", // loans June Woods, LLC
917        "locker", // locker Dish DBS Corporation
918        "locus", // locus Locus Analytics LLC
919        "loft", // loft Annco, Inc.
920        "lol", // lol Uniregistry, Corp.
921        "london", // london Dot London Domains Limited
922        "lotte", // lotte Lotte Holdings Co., Ltd.
923        "lotto", // lotto Afilias Limited
924        "love", // love Merchant Law Group LLP
925        "lpl", // lpl LPL Holdings, Inc.
926        "lplfinancial", // lplfinancial LPL Holdings, Inc.
927        "ltd", // ltd Over Corner, LLC
928        "ltda", // ltda InterNetX Corp.
929        "lundbeck", // lundbeck H. Lundbeck A/S
930        "lupin", // lupin LUPIN LIMITED
931        "luxe", // luxe Top Level Domain Holdings Limited
932        "luxury", // luxury Luxury Partners LLC
933        "macys", // macys Macys, Inc.
934        "madrid", // madrid Comunidad de Madrid
935        "maif", // maif Mutuelle Assurance Instituteur France (MAIF)
936        "maison", // maison Victor Frostbite, LLC
937        "makeup", // makeup L&#39;Oréal
938        "man", // man MAN SE
939        "management", // management John Goodbye, LLC
940        "mango", // mango PUNTO FA S.L.
941        "map", // map Charleston Road Registry Inc.
942        "market", // market Unitied TLD Holdco, Ltd
943        "marketing", // marketing Fern Pass, LLC
944        "markets", // markets DOTMARKETS REGISTRY LTD
945        "marriott", // marriott Marriott Worldwide Corporation
946        "marshalls", // marshalls The TJX Companies, Inc.
947        "maserati", // maserati Fiat Chrysler Automobiles N.V.
948        "mattel", // mattel Mattel Sites, Inc.
949        "mba", // mba Lone Hollow, LLC
950        "mckinsey", // mckinsey McKinsey Holdings, Inc.
951        "med", // med Medistry LLC
952        "media", // media Grand Glen, LLC
953        "meet", // meet Afilias Limited
954        "melbourne", // melbourne The Crown in right of the State of Victoria
955        "meme", // meme Charleston Road Registry Inc.
956        "memorial", // memorial Dog Beach, LLC
957        "men", // men Exclusive Registry Limited
958        "menu", // menu Wedding TLD2, LLC
959        "meo", // meo PT Comunicacoes S.A.
960        "merckmsd", // merckmsd MSD Registry Holdings, Inc.
961        "metlife", // metlife MetLife Services and Solutions, LLC
962        "miami", // miami Top Level Domain Holdings Limited
963        "microsoft", // microsoft Microsoft Corporation
964        "mil", // mil DoD Network Information Center
965        "mini", // mini Bayerische Motoren Werke Aktiengesellschaft
966        "mint", // mint Intuit Administrative Services, Inc.
967        "mit", // mit Massachusetts Institute of Technology
968        "mitsubishi", // mitsubishi Mitsubishi Corporation
969        "mlb", // mlb MLB Advanced Media DH, LLC
970        "mls", // mls The Canadian Real Estate Association
971        "mma", // mma MMA IARD
972        "mobi", // mobi Afilias Technologies Limited dba dotMobi
973        "mobile", // mobile Dish DBS Corporation
974        "mobily", // mobily GreenTech Consultancy Company W.L.L.
975        "moda", // moda United TLD Holdco Ltd.
976        "moe", // moe Interlink Co., Ltd.
977        "moi", // moi Amazon Registry Services, Inc.
978        "mom", // mom Uniregistry, Corp.
979        "monash", // monash Monash University
980        "money", // money Outer McCook, LLC
981        "monster", // monster Monster Worldwide, Inc.
982        "mopar", // mopar FCA US LLC.
983        "mormon", // mormon IRI Domain Management, LLC (&quot;Applicant&quot;)
984        "mortgage", // mortgage United TLD Holdco, Ltd
985        "moscow", // moscow Foundation for Assistance for Internet Technologies and Infrastructure Development (FAITID)
986        "moto", // moto Motorola Trademark Holdings, LLC
987        "motorcycles", // motorcycles DERMotorcycles, LLC
988        "mov", // mov Charleston Road Registry Inc.
989        "movie", // movie New Frostbite, LLC
990        "movistar", // movistar Telefónica S.A.
991        "msd", // msd MSD Registry Holdings, Inc.
992        "mtn", // mtn MTN Dubai Limited
993        "mtr", // mtr MTR Corporation Limited
994        "museum", // museum Museum Domain Management Association
995        "mutual", // mutual Northwestern Mutual MU TLD Registry, LLC
996        "nab", // nab National Australia Bank Limited
997        "nadex", // nadex Nadex Domains, Inc
998        "nagoya", // nagoya GMO Registry, Inc.
999        "name", // name VeriSign Information Services, Inc.
1000        "nationwide", // nationwide Nationwide Mutual Insurance Company
1001        "natura", // natura NATURA COSMÉTICOS S.A.
1002        "navy", // navy United TLD Holdco Ltd.
1003        "nba", // nba NBA REGISTRY, LLC
1004        "nec", // nec NEC Corporation
1005        "net", // net VeriSign Global Registry Services
1006        "netbank", // netbank COMMONWEALTH BANK OF AUSTRALIA
1007        "netflix", // netflix Netflix, Inc.
1008        "network", // network Trixy Manor, LLC
1009        "neustar", // neustar NeuStar, Inc.
1010        "new", // new Charleston Road Registry Inc.
1011        "newholland", // newholland CNH Industrial N.V.
1012        "news", // news United TLD Holdco Ltd.
1013        "next", // next Next plc
1014        "nextdirect", // nextdirect Next plc
1015        "nexus", // nexus Charleston Road Registry Inc.
1016        "nfl", // nfl NFL Reg Ops LLC
1017        "ngo", // ngo Public Interest Registry
1018        "nhk", // nhk Japan Broadcasting Corporation (NHK)
1019        "nico", // nico DWANGO Co., Ltd.
1020        "nike", // nike NIKE, Inc.
1021        "nikon", // nikon NIKON CORPORATION
1022        "ninja", // ninja United TLD Holdco Ltd.
1023        "nissan", // nissan NISSAN MOTOR CO., LTD.
1024        "nissay", // nissay Nippon Life Insurance Company
1025        "nokia", // nokia Nokia Corporation
1026        "northwesternmutual", // northwesternmutual Northwestern Mutual Registry, LLC
1027        "norton", // norton Symantec Corporation
1028        "now", // now Amazon Registry Service, Inc.
1029        "nowruz", // nowruz Asia Green IT System Bilgisayar San. ve Tic. Ltd. Sti.
1030        "nowtv", // nowtv Starbucks (HK) Limited
1031        "nra", // nra NRA Holdings Company, INC.
1032        "nrw", // nrw Minds + Machines GmbH
1033        "ntt", // ntt NIPPON TELEGRAPH AND TELEPHONE CORPORATION
1034        "nyc", // nyc The City of New York by and through the New York City Department of Information Technology &amp; Telecommunications
1035        "obi", // obi OBI Group Holding SE &amp; Co. KGaA
1036        "observer", // observer Top Level Spectrum, Inc.
1037        "off", // off Johnson Shareholdings, Inc.
1038        "office", // office Microsoft Corporation
1039        "okinawa", // okinawa BusinessRalliart inc.
1040        "olayan", // olayan Crescent Holding GmbH
1041        "olayangroup", // olayangroup Crescent Holding GmbH
1042        "oldnavy", // oldnavy The Gap, Inc.
1043        "ollo", // ollo Dish DBS Corporation
1044        "omega", // omega The Swatch Group Ltd
1045        "one", // one One.com A/S
1046        "ong", // ong Public Interest Registry
1047        "onl", // onl I-REGISTRY Ltd., Niederlassung Deutschland
1048        "online", // online DotOnline Inc.
1049        "onyourside", // onyourside Nationwide Mutual Insurance Company
1050        "ooo", // ooo INFIBEAM INCORPORATION LIMITED
1051        "open", // open American Express Travel Related Services Company, Inc.
1052        "oracle", // oracle Oracle Corporation
1053        "orange", // orange Orange Brand Services Limited
1054        "org", // org Public Interest Registry (PIR)
1055        "organic", // organic Afilias Limited
1056        "origins", // origins The Estée Lauder Companies Inc.
1057        "osaka", // osaka Interlink Co., Ltd.
1058        "otsuka", // otsuka Otsuka Holdings Co., Ltd.
1059        "ott", // ott Dish DBS Corporation
1060        "ovh", // ovh OVH SAS
1061        "page", // page Charleston Road Registry Inc.
1062        "panasonic", // panasonic Panasonic Corporation
1063        "panerai", // panerai Richemont DNS Inc.
1064        "paris", // paris City of Paris
1065        "pars", // pars Asia Green IT System Bilgisayar San. ve Tic. Ltd. Sti.
1066        "partners", // partners Magic Glen, LLC
1067        "parts", // parts Sea Goodbye, LLC
1068        "party", // party Blue Sky Registry Limited
1069        "passagens", // passagens Travel Reservations SRL
1070        "pay", // pay Amazon Registry Services, Inc.
1071        "pccw", // pccw PCCW Enterprises Limited
1072        "pet", // pet Afilias plc
1073        "pfizer", // pfizer Pfizer Inc.
1074        "pharmacy", // pharmacy National Association of Boards of Pharmacy
1075        "phd", // phd Charleston Road Registry Inc.
1076        "philips", // philips Koninklijke Philips N.V.
1077        "phone", // phone Dish DBS Corporation
1078        "photo", // photo Uniregistry, Corp.
1079        "photography", // photography Sugar Glen, LLC
1080        "photos", // photos Sea Corner, LLC
1081        "physio", // physio PhysBiz Pty Ltd
1082        "piaget", // piaget Richemont DNS Inc.
1083        "pics", // pics Uniregistry, Corp.
1084        "pictet", // pictet Pictet Europe S.A.
1085        "pictures", // pictures Foggy Sky, LLC
1086        "pid", // pid Top Level Spectrum, Inc.
1087        "pin", // pin Amazon Registry Services, Inc.
1088        "ping", // ping Ping Registry Provider, Inc.
1089        "pink", // pink Afilias Limited
1090        "pioneer", // pioneer Pioneer Corporation
1091        "pizza", // pizza Foggy Moon, LLC
1092        "place", // place Snow Galley, LLC
1093        "play", // play Charleston Road Registry Inc.
1094        "playstation", // playstation Sony Computer Entertainment Inc.
1095        "plumbing", // plumbing Spring Tigers, LLC
1096        "plus", // plus Sugar Mill, LLC
1097        "pnc", // pnc PNC Domain Co., LLC
1098        "pohl", // pohl Deutsche Vermögensberatung Aktiengesellschaft DVAG
1099        "poker", // poker Afilias Domains No. 5 Limited
1100        "politie", // politie Politie Nederland
1101        "porn", // porn ICM Registry PN LLC
1102        "post", // post Universal Postal Union
1103        "pramerica", // pramerica Prudential Financial, Inc.
1104        "praxi", // praxi Praxi S.p.A.
1105        "press", // press DotPress Inc.
1106        "prime", // prime Amazon Registry Service, Inc.
1107        "pro", // pro Registry Services Corporation dba RegistryPro
1108        "prod", // prod Charleston Road Registry Inc.
1109        "productions", // productions Magic Birch, LLC
1110        "prof", // prof Charleston Road Registry Inc.
1111        "progressive", // progressive Progressive Casualty Insurance Company
1112        "promo", // promo Afilias plc
1113        "properties", // properties Big Pass, LLC
1114        "property", // property Uniregistry, Corp.
1115        "protection", // protection XYZ.COM LLC
1116        "pru", // pru Prudential Financial, Inc.
1117        "prudential", // prudential Prudential Financial, Inc.
1118        "pub", // pub United TLD Holdco Ltd.
1119        "pwc", // pwc PricewaterhouseCoopers LLP
1120        "qpon", // qpon dotCOOL, Inc.
1121        "quebec", // quebec PointQuébec Inc
1122        "quest", // quest Quest ION Limited
1123        "qvc", // qvc QVC, Inc.
1124        "racing", // racing Premier Registry Limited
1125        "radio", // radio European Broadcasting Union (EBU)
1126        "raid", // raid Johnson Shareholdings, Inc.
1127        "read", // read Amazon Registry Services, Inc.
1128        "realestate", // realestate dotRealEstate LLC
1129        "realtor", // realtor Real Estate Domains LLC
1130        "realty", // realty Fegistry, LLC
1131        "recipes", // recipes Grand Island, LLC
1132        "red", // red Afilias Limited
1133        "redstone", // redstone Redstone Haute Couture Co., Ltd.
1134        "redumbrella", // redumbrella Travelers TLD, LLC
1135        "rehab", // rehab United TLD Holdco Ltd.
1136        "reise", // reise Foggy Way, LLC
1137        "reisen", // reisen New Cypress, LLC
1138        "reit", // reit National Association of Real Estate Investment Trusts, Inc.
1139        "reliance", // reliance Reliance Industries Limited
1140        "ren", // ren Beijing Qianxiang Wangjing Technology Development Co., Ltd.
1141        "rent", // rent XYZ.COM LLC
1142        "rentals", // rentals Big Hollow,LLC
1143        "repair", // repair Lone Sunset, LLC
1144        "report", // report Binky Glen, LLC
1145        "republican", // republican United TLD Holdco Ltd.
1146        "rest", // rest Punto 2012 Sociedad Anonima Promotora de Inversion de Capital Variable
1147        "restaurant", // restaurant Snow Avenue, LLC
1148        "review", // review dot Review Limited
1149        "reviews", // reviews United TLD Holdco, Ltd.
1150        "rexroth", // rexroth Robert Bosch GMBH
1151        "rich", // rich I-REGISTRY Ltd., Niederlassung Deutschland
1152        "richardli", // richardli Pacific Century Asset Management (HK) Limited
1153        "ricoh", // ricoh Ricoh Company, Ltd.
1154        "rightathome", // rightathome Johnson Shareholdings, Inc.
1155        "ril", // ril Reliance Industries Limited
1156        "rio", // rio Empresa Municipal de Informática SA - IPLANRIO
1157        "rip", // rip United TLD Holdco Ltd.
1158        "rmit", // rmit Royal Melbourne Institute of Technology
1159        "rocher", // rocher Ferrero Trading Lux S.A.
1160        "rocks", // rocks United TLD Holdco, LTD.
1161        "rodeo", // rodeo Top Level Domain Holdings Limited
1162        "rogers", // rogers Rogers Communications Canada Inc.
1163        "room", // room Amazon Registry Services, Inc.
1164        "rsvp", // rsvp Charleston Road Registry Inc.
1165        "rugby", // rugby World Rugby Strategic Developments Limited
1166        "ruhr", // ruhr regiodot GmbH &amp; Co. KG
1167        "run", // run Snow Park, LLC
1168        "rwe", // rwe RWE AG
1169        "ryukyu", // ryukyu BusinessRalliart inc.
1170        "saarland", // saarland dotSaarland GmbH
1171        "safe", // safe Amazon Registry Services, Inc.
1172        "safety", // safety Safety Registry Services, LLC.
1173        "sakura", // sakura SAKURA Internet Inc.
1174        "sale", // sale United TLD Holdco, Ltd
1175        "salon", // salon Outer Orchard, LLC
1176        "samsclub", // samsclub Wal-Mart Stores, Inc.
1177        "samsung", // samsung SAMSUNG SDS CO., LTD
1178        "sandvik", // sandvik Sandvik AB
1179        "sandvikcoromant", // sandvikcoromant Sandvik AB
1180        "sanofi", // sanofi Sanofi
1181        "sap", // sap SAP AG
1182        "sapo", // sapo PT Comunicacoes S.A.
1183        "sarl", // sarl Delta Orchard, LLC
1184        "sas", // sas Research IP LLC
1185        "save", // save Amazon Registry Service, Inc.
1186        "saxo", // saxo Saxo Bank A/S
1187        "sbi", // sbi STATE BANK OF INDIA
1188        "sbs", // sbs SPECIAL BROADCASTING SERVICE CORPORATION
1189        "sca", // sca SVENSKA CELLULOSA AKTIEBOLAGET SCA (publ)
1190        "scb", // scb The Siam Commercial Bank Public Company Limited (&quot;SCB&quot;)
1191        "schaeffler", // schaeffler Schaeffler Technologies AG &amp; Co. KG
1192        "schmidt", // schmidt SALM S.A.S.
1193        "scholarships", // scholarships Scholarships.com, LLC
1194        "school", // school Little Galley, LLC
1195        "schule", // schule Outer Moon, LLC
1196        "schwarz", // schwarz Schwarz Domains und Services GmbH &amp; Co. KG
1197        "science", // science dot Science Limited
1198        "scjohnson", // scjohnson Johnson Shareholdings, Inc.
1199        "scor", // scor SCOR SE
1200        "scot", // scot Dot Scot Registry Limited
1201        "search", // search Charleston Road Registry Inc.
1202        "seat", // seat SEAT, S.A. (Sociedad Unipersonal)
1203        "secure", // secure Amazon Registry Services, Inc.
1204        "security", // security XYZ.COM LLC
1205        "seek", // seek Seek Limited
1206        "select", // select iSelect Ltd
1207        "sener", // sener Sener Ingeniería y Sistemas, S.A.
1208        "services", // services Fox Castle, LLC
1209        "ses", // ses SES
1210        "seven", // seven Seven West Media Ltd
1211        "sew", // sew SEW-EURODRIVE GmbH &amp; Co KG
1212        "sex", // sex ICM Registry SX LLC
1213        "sexy", // sexy Uniregistry, Corp.
1214        "sfr", // sfr Societe Francaise du Radiotelephone - SFR
1215        "shangrila", // shangrila Shangri‐La International Hotel Management Limited
1216        "sharp", // sharp Sharp Corporation
1217        "shaw", // shaw Shaw Cablesystems G.P.
1218        "shell", // shell Shell Information Technology International Inc
1219        "shia", // shia Asia Green IT System Bilgisayar San. ve Tic. Ltd. Sti.
1220        "shiksha", // shiksha Afilias Limited
1221        "shoes", // shoes Binky Galley, LLC
1222        "shop", // shop GMO Registry, Inc.
1223        "shopping", // shopping Over Keep, LLC
1224        "shouji", // shouji QIHOO 360 TECHNOLOGY CO. LTD.
1225        "show", // show Snow Beach, LLC
1226        "showtime", // showtime CBS Domains Inc.
1227        "shriram", // shriram Shriram Capital Ltd.
1228        "silk", // silk Amazon Registry Service, Inc.
1229        "sina", // sina Sina Corporation
1230        "singles", // singles Fern Madison, LLC
1231        "site", // site DotSite Inc.
1232        "ski", // ski STARTING DOT LIMITED
1233        "skin", // skin L&#39;Oréal
1234        "sky", // sky Sky International AG
1235        "skype", // skype Microsoft Corporation
1236        "sling", // sling Hughes Satellite Systems Corporation
1237        "smart", // smart Smart Communications, Inc. (SMART)
1238        "smile", // smile Amazon Registry Services, Inc.
1239        "sncf", // sncf SNCF (Société Nationale des Chemins de fer Francais)
1240        "soccer", // soccer Foggy Shadow, LLC
1241        "social", // social United TLD Holdco Ltd.
1242        "softbank", // softbank SoftBank Group Corp.
1243        "software", // software United TLD Holdco, Ltd
1244        "sohu", // sohu Sohu.com Limited
1245        "solar", // solar Ruby Town, LLC
1246        "solutions", // solutions Silver Cover, LLC
1247        "song", // song Amazon EU S.à r.l.
1248        "sony", // sony Sony Corporation
1249        "soy", // soy Charleston Road Registry Inc.
1250        "space", // space DotSpace Inc.
1251        "spiegel", // spiegel SPIEGEL-Verlag Rudolf Augstein GmbH &amp; Co. KG
1252        "sport", // sport Global Association of International Sports Federations (GAISF)
1253        "spot", // spot Amazon Registry Services, Inc.
1254        "spreadbetting", // spreadbetting DOTSPREADBETTING REGISTRY LTD
1255        "srl", // srl InterNetX Corp.
1256        "srt", // srt FCA US LLC.
1257        "stada", // stada STADA Arzneimittel AG
1258        "staples", // staples Staples, Inc.
1259        "star", // star Star India Private Limited
1260        "starhub", // starhub StarHub Limited
1261        "statebank", // statebank STATE BANK OF INDIA
1262        "statefarm", // statefarm State Farm Mutual Automobile Insurance Company
1263        "statoil", // statoil Statoil ASA
1264        "stc", // stc Saudi Telecom Company
1265        "stcgroup", // stcgroup Saudi Telecom Company
1266        "stockholm", // stockholm Stockholms kommun
1267        "storage", // storage Self Storage Company LLC
1268        "store", // store DotStore Inc.
1269        "stream", // stream dot Stream Limited
1270        "studio", // studio United TLD Holdco Ltd.
1271        "study", // study OPEN UNIVERSITIES AUSTRALIA PTY LTD
1272        "style", // style Binky Moon, LLC
1273        "sucks", // sucks Vox Populi Registry Ltd.
1274        "supplies", // supplies Atomic Fields, LLC
1275        "supply", // supply Half Falls, LLC
1276        "support", // support Grand Orchard, LLC
1277        "surf", // surf Top Level Domain Holdings Limited
1278        "surgery", // surgery Tin Avenue, LLC
1279        "suzuki", // suzuki SUZUKI MOTOR CORPORATION
1280        "swatch", // swatch The Swatch Group Ltd
1281        "swiftcover", // swiftcover Swiftcover Insurance Services Limited
1282        "swiss", // swiss Swiss Confederation
1283        "sydney", // sydney State of New South Wales, Department of Premier and Cabinet
1284        "symantec", // symantec Symantec Corporation
1285        "systems", // systems Dash Cypress, LLC
1286        "tab", // tab Tabcorp Holdings Limited
1287        "taipei", // taipei Taipei City Government
1288        "talk", // talk Amazon Registry Services, Inc.
1289        "taobao", // taobao Alibaba Group Holding Limited
1290        "target", // target Target Domain Holdings, LLC
1291        "tatamotors", // tatamotors Tata Motors Ltd
1292        "tatar", // tatar Limited Liability Company "Coordination Center of Regional Domain of Tatarstan Republic"
1293        "tattoo", // tattoo Uniregistry, Corp.
1294        "tax", // tax Storm Orchard, LLC
1295        "taxi", // taxi Pine Falls, LLC
1296        "tci", // tci Asia Green IT System Bilgisayar San. ve Tic. Ltd. Sti.
1297        "tdk", // tdk TDK Corporation
1298        "team", // team Atomic Lake, LLC
1299        "tech", // tech Dot Tech LLC
1300        "technology", // technology Auburn Falls, LLC
1301        "tel", // tel Telnic Ltd.
1302        "telecity", // telecity TelecityGroup International Limited
1303        "telefonica", // telefonica Telefónica S.A.
1304        "temasek", // temasek Temasek Holdings (Private) Limited
1305        "tennis", // tennis Cotton Bloom, LLC
1306        "teva", // teva Teva Pharmaceutical Industries Limited
1307        "thd", // thd Homer TLC, Inc.
1308        "theater", // theater Blue Tigers, LLC
1309        "theatre", // theatre XYZ.COM LLC
1310        "tiaa", // tiaa Teachers Insurance and Annuity Association of America
1311        "tickets", // tickets Accent Media Limited
1312        "tienda", // tienda Victor Manor, LLC
1313        "tiffany", // tiffany Tiffany and Company
1314        "tips", // tips Corn Willow, LLC
1315        "tires", // tires Dog Edge, LLC
1316        "tirol", // tirol punkt Tirol GmbH
1317        "tjmaxx", // tjmaxx The TJX Companies, Inc.
1318        "tjx", // tjx The TJX Companies, Inc.
1319        "tkmaxx", // tkmaxx The TJX Companies, Inc.
1320        "tmall", // tmall Alibaba Group Holding Limited
1321        "today", // today Pearl Woods, LLC
1322        "tokyo", // tokyo GMO Registry, Inc.
1323        "tools", // tools Pioneer North, LLC
1324        "top", // top Jiangsu Bangning Science &amp; Technology Co.,Ltd.
1325        "toray", // toray Toray Industries, Inc.
1326        "toshiba", // toshiba TOSHIBA Corporation
1327        "total", // total Total SA
1328        "tours", // tours Sugar Station, LLC
1329        "town", // town Koko Moon, LLC
1330        "toyota", // toyota TOYOTA MOTOR CORPORATION
1331        "toys", // toys Pioneer Orchard, LLC
1332        "trade", // trade Elite Registry Limited
1333        "trading", // trading DOTTRADING REGISTRY LTD
1334        "training", // training Wild Willow, LLC
1335        "travel", // travel Tralliance Registry Management Company, LLC.
1336        "travelchannel", // travelchannel Lifestyle Domain Holdings, Inc.
1337        "travelers", // travelers Travelers TLD, LLC
1338        "travelersinsurance", // travelersinsurance Travelers TLD, LLC
1339        "trust", // trust Artemis Internet Inc
1340        "trv", // trv Travelers TLD, LLC
1341        "tube", // tube Latin American Telecom LLC
1342        "tui", // tui TUI AG
1343        "tunes", // tunes Amazon Registry Services, Inc.
1344        "tushu", // tushu Amazon Registry Services, Inc.
1345        "tvs", // tvs T V SUNDRAM IYENGAR  &amp; SONS PRIVATE LIMITED
1346        "ubank", // ubank National Australia Bank Limited
1347        "ubs", // ubs UBS AG
1348        "uconnect", // uconnect FCA US LLC.
1349        "unicom", // unicom China United Network Communications Corporation Limited
1350        "university", // university Little Station, LLC
1351        "uno", // uno Dot Latin LLC
1352        "uol", // uol UBN INTERNET LTDA.
1353        "ups", // ups UPS Market Driver, Inc.
1354        "vacations", // vacations Atomic Tigers, LLC
1355        "vana", // vana Lifestyle Domain Holdings, Inc.
1356        "vanguard", // vanguard The Vanguard Group, Inc.
1357        "vegas", // vegas Dot Vegas, Inc.
1358        "ventures", // ventures Binky Lake, LLC
1359        "verisign", // verisign VeriSign, Inc.
1360        "versicherung", // versicherung dotversicherung-registry GmbH
1361        "vet", // vet United TLD Holdco, Ltd
1362        "viajes", // viajes Black Madison, LLC
1363        "video", // video United TLD Holdco, Ltd
1364        "vig", // vig VIENNA INSURANCE GROUP AG Wiener Versicherung Gruppe
1365        "viking", // viking Viking River Cruises (Bermuda) Ltd.
1366        "villas", // villas New Sky, LLC
1367        "vin", // vin Holly Shadow, LLC
1368        "vip", // vip Minds + Machines Group Limited
1369        "virgin", // virgin Virgin Enterprises Limited
1370        "visa", // visa Visa Worldwide Pte. Limited
1371        "vision", // vision Koko Station, LLC
1372        "vista", // vista Vistaprint Limited
1373        "vistaprint", // vistaprint Vistaprint Limited
1374        "viva", // viva Saudi Telecom Company
1375        "vivo", // vivo Telefonica Brasil S.A.
1376        "vlaanderen", // vlaanderen DNS.be vzw
1377        "vodka", // vodka Top Level Domain Holdings Limited
1378        "volkswagen", // volkswagen Volkswagen Group of America Inc.
1379        "volvo", // volvo Volvo Holding Sverige Aktiebolag
1380        "vote", // vote Monolith Registry LLC
1381        "voting", // voting Valuetainment Corp.
1382        "voto", // voto Monolith Registry LLC
1383        "voyage", // voyage Ruby House, LLC
1384        "vuelos", // vuelos Travel Reservations SRL
1385        "wales", // wales Nominet UK
1386        "walmart", // walmart Wal-Mart Stores, Inc.
1387        "walter", // walter Sandvik AB
1388        "wang", // wang Zodiac Registry Limited
1389        "wanggou", // wanggou Amazon Registry Services, Inc.
1390        "warman", // warman Weir Group IP Limited
1391        "watch", // watch Sand Shadow, LLC
1392        "watches", // watches Richemont DNS Inc.
1393        "weather", // weather The Weather Channel, LLC
1394        "weatherchannel", // weatherchannel The Weather Channel, LLC
1395        "webcam", // webcam dot Webcam Limited
1396        "weber", // weber Saint-Gobain Weber SA
1397        "website", // website DotWebsite Inc.
1398        "wed", // wed Atgron, Inc.
1399        "wedding", // wedding Top Level Domain Holdings Limited
1400        "weibo", // weibo Sina Corporation
1401        "weir", // weir Weir Group IP Limited
1402        "whoswho", // whoswho Who&#39;s Who Registry
1403        "wien", // wien punkt.wien GmbH
1404        "wiki", // wiki Top Level Design, LLC
1405        "williamhill", // williamhill William Hill Organization Limited
1406        "win", // win First Registry Limited
1407        "windows", // windows Microsoft Corporation
1408        "wine", // wine June Station, LLC
1409        "winners", // winners The TJX Companies, Inc.
1410        "wme", // wme William Morris Endeavor Entertainment, LLC
1411        "wolterskluwer", // wolterskluwer Wolters Kluwer N.V.
1412        "woodside", // woodside Woodside Petroleum Limited
1413        "work", // work Top Level Domain Holdings Limited
1414        "works", // works Little Dynamite, LLC
1415        "world", // world Bitter Fields, LLC
1416        "wow", // wow Amazon Registry Services, Inc.
1417        "wtc", // wtc World Trade Centers Association, Inc.
1418        "wtf", // wtf Hidden Way, LLC
1419        "xbox", // xbox Microsoft Corporation
1420        "xerox", // xerox Xerox DNHC LLC
1421        "xfinity", // xfinity Comcast IP Holdings I, LLC
1422        "xihuan", // xihuan QIHOO 360 TECHNOLOGY CO. LTD.
1423        "xin", // xin Elegant Leader Limited
1424        "xn--11b4c3d", // कॉम VeriSign Sarl
1425        "xn--1ck2e1b", // セール Amazon Registry Services, Inc.
1426        "xn--1qqw23a", // 佛山 Guangzhou YU Wei Information Technology Co., Ltd.
1427        "xn--2scrj9c", // ಭಾರತ National Internet eXchange of India
1428        "xn--30rr7y", // 慈善 Excellent First Limited
1429        "xn--3bst00m", // 集团 Eagle Horizon Limited
1430        "xn--3ds443g", // 在线 TLD REGISTRY LIMITED
1431        "xn--3hcrj9c", // ଭାରତ National Internet eXchange of India
1432        "xn--3oq18vl8pn36a", // 大众汽车 Volkswagen (China) Investment Co., Ltd.
1433        "xn--3pxu8k", // 点看 VeriSign Sarl
1434        "xn--42c2d9a", // คอม VeriSign Sarl
1435        "xn--45br5cyl", // ভাৰত National Internet eXchange of India
1436        "xn--45q11c", // 八卦 Zodiac Scorpio Limited
1437        "xn--4gbrim", // موقع Suhub Electronic Establishment
1438        "xn--54b7fta0cc", // বাংলা Posts and Telecommunications Division
1439        "xn--55qw42g", // 公益 China Organizational Name Administration Center
1440        "xn--55qx5d", // 公司 Computer Network Information Center of Chinese Academy of Sciences (China Internet Network Information Center)
1441        "xn--5su34j936bgsg", // 香格里拉 Shangri‐La International Hotel Management Limited
1442        "xn--5tzm5g", // 网站 Global Website TLD Asia Limited
1443        "xn--6frz82g", // 移动 Afilias Limited
1444        "xn--6qq986b3xl", // 我爱你 Tycoon Treasure Limited
1445        "xn--80adxhks", // москва Foundation for Assistance for Internet Technologies and Infrastructure Development (FAITID)
1446        "xn--80aqecdr1a", // католик Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
1447        "xn--80asehdb", // онлайн CORE Association
1448        "xn--80aswg", // сайт CORE Association
1449        "xn--8y0a063a", // 联通 China United Network Communications Corporation Limited
1450        "xn--90ae", // бг Imena.BG Plc (NAMES.BG Plc)
1451        "xn--9dbq2a", // קום VeriSign Sarl
1452        "xn--9et52u", // 时尚 RISE VICTORY LIMITED
1453        "xn--9krt00a", // 微博 Sina Corporation
1454        "xn--b4w605ferd", // 淡马锡 Temasek Holdings (Private) Limited
1455        "xn--bck1b9a5dre4c", // ファッション Amazon Registry Services, Inc.
1456        "xn--c1avg", // орг Public Interest Registry
1457        "xn--c2br7g", // नेट VeriSign Sarl
1458        "xn--cck2b3b", // ストア Amazon Registry Services, Inc.
1459        "xn--cg4bki", // 삼성 SAMSUNG SDS CO., LTD
1460        "xn--czr694b", // 商标 HU YI GLOBAL INFORMATION RESOURCES(HOLDING) COMPANY.HONGKONG LIMITED
1461        "xn--czrs0t", // 商店 Wild Island, LLC
1462        "xn--czru2d", // 商城 Zodiac Aquarius Limited
1463        "xn--d1acj3b", // дети The Foundation for Network Initiatives “The Smart Internet”
1464        "xn--eckvdtc9d", // ポイント Amazon Registry Services, Inc.
1465        "xn--efvy88h", // 新闻 Xinhua News Agency Guangdong Branch 新华通讯社广东分社
1466        "xn--estv75g", // 工行 Industrial and Commercial Bank of China Limited
1467        "xn--fct429k", // 家電 Amazon Registry Services, Inc.
1468        "xn--fhbei", // كوم VeriSign Sarl
1469        "xn--fiq228c5hs", // 中文网 TLD REGISTRY LIMITED
1470        "xn--fiq64b", // 中信 CITIC Group Corporation
1471        "xn--fjq720a", // 娱乐 Will Bloom, LLC
1472        "xn--flw351e", // 谷歌 Charleston Road Registry Inc.
1473        "xn--fzys8d69uvgm", // 電訊盈科 PCCW Enterprises Limited
1474        "xn--g2xx48c", // 购物 Minds + Machines Group Limited
1475        "xn--gckr3f0f", // クラウド Amazon Registry Services, Inc.
1476        "xn--gk3at1e", // 通販 Amazon Registry Services, Inc.
1477        "xn--h2breg3eve", // भारतम् National Internet eXchange of India
1478        "xn--h2brj9c8c", // भारोत National Internet eXchange of India
1479        "xn--hxt814e", // 网店 Zodiac Libra Limited
1480        "xn--i1b6b1a6a2e", // संगठन Public Interest Registry
1481        "xn--imr513n", // 餐厅 HU YI GLOBAL INFORMATION RESOURCES (HOLDING) COMPANY. HONGKONG LIMITED
1482        "xn--io0a7i", // 网络 Computer Network Information Center of Chinese Academy of Sciences (China Internet Network Information Center)
1483        "xn--j1aef", // ком VeriSign Sarl
1484        "xn--jlq61u9w7b", // 诺基亚 Nokia Corporation
1485        "xn--jvr189m", // 食品 Amazon Registry Services, Inc.
1486        "xn--kcrx77d1x4a", // 飞利浦 Koninklijke Philips N.V.
1487        "xn--kpu716f", // 手表 Richemont DNS Inc.
1488        "xn--kput3i", // 手机 Beijing RITT-Net Technology Development Co., Ltd
1489        "xn--mgba3a3ejt", // ارامكو Aramco Services Company
1490        "xn--mgba7c0bbn0a", // العليان Crescent Holding GmbH
1491        "xn--mgbaakc7dvf", // اتصالات Emirates Telecommunications Corporation (trading as Etisalat)
1492        "xn--mgbab2bd", // بازار CORE Association
1493        "xn--mgbai9azgqp6j", // پاکستان National Telecommunication Corporation
1494        "xn--mgbb9fbpob", // موبايلي GreenTech Consultancy Company W.L.L.
1495        "xn--mgbbh1a", // بارت National Internet eXchange of India
1496        "xn--mgbca7dzdo", // ابوظبي Abu Dhabi Systems and Information Centre
1497        "xn--mgbgu82a", // ڀارت National Internet eXchange of India
1498        "xn--mgbi4ecexp", // كاثوليك Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
1499        "xn--mgbt3dhd", // همراه Asia Green IT System Bilgisayar San. ve Tic. Ltd. Sti.
1500        "xn--mk1bu44c", // 닷컴 VeriSign Sarl
1501        "xn--mxtq1m", // 政府 Net-Chinese Co., Ltd.
1502        "xn--ngbc5azd", // شبكة International Domain Registry Pty. Ltd.
1503        "xn--ngbe9e0a", // بيتك Kuwait Finance House
1504        "xn--ngbrx", // عرب League of Arab States
1505        "xn--nqv7f", // 机构 Public Interest Registry
1506        "xn--nqv7fs00ema", // 组织机构 Public Interest Registry
1507        "xn--nyqy26a", // 健康 Stable Tone Limited
1508        "xn--otu796d", // 招聘 Dot Trademark TLD Holding Company Limited
1509        "xn--p1acf", // рус Rusnames Limited
1510        "xn--pbt977c", // 珠宝 Richemont DNS Inc.
1511        "xn--pssy2u", // 大拿 VeriSign Sarl
1512        "xn--q9jyb4c", // みんな Charleston Road Registry Inc.
1513        "xn--qcka1pmc", // グーグル Charleston Road Registry Inc.
1514        "xn--rhqv96g", // 世界 Stable Tone Limited
1515        "xn--rovu88b", // 書籍 Amazon EU S.à r.l.
1516        "xn--rvc1e0am3e", // ഭാരതം National Internet eXchange of India
1517        "xn--ses554g", // 网址 KNET Co., Ltd
1518        "xn--t60b56a", // 닷넷 VeriSign Sarl
1519        "xn--tckwe", // コム VeriSign Sarl
1520        "xn--tiq49xqyj", // 天主教 Pontificium Consilium de Comunicationibus Socialibus (PCCS) (Pontifical Council for Social Communication)
1521        "xn--unup4y", // 游戏 Spring Fields, LLC
1522        "xn--vermgensberater-ctb", // VERMöGENSBERATER Deutsche Vermögensberatung Aktiengesellschaft DVAG
1523        "xn--vermgensberatung-pwb", // VERMöGENSBERATUNG Deutsche Vermögensberatung Aktiengesellschaft DVAG
1524        "xn--vhquv", // 企业 Dash McCook, LLC
1525        "xn--vuq861b", // 信息 Beijing Tele-info Network Technology Co., Ltd.
1526        "xn--w4r85el8fhu5dnra", // 嘉里大酒店 Kerry Trading Co. Limited
1527        "xn--w4rs40l", // 嘉里 Kerry Trading Co. Limited
1528        "xn--xhq521b", // 广东 Guangzhou YU Wei Information Technology Co., Ltd.
1529        "xn--zfr164b", // 政务 China Organizational Name Administration Center
1530        "xperia", // xperia Sony Mobile Communications AB
1531        "xxx", // xxx ICM Registry LLC
1532        "xyz", // xyz XYZ.COM LLC
1533        "yachts", // yachts DERYachts, LLC
1534        "yahoo", // yahoo Yahoo! Domain Services Inc.
1535        "yamaxun", // yamaxun Amazon Registry Services, Inc.
1536        "yandex", // yandex YANDEX, LLC
1537        "yodobashi", // yodobashi YODOBASHI CAMERA CO.,LTD.
1538        "yoga", // yoga Top Level Domain Holdings Limited
1539        "yokohama", // yokohama GMO Registry, Inc.
1540        "you", // you Amazon Registry Services, Inc.
1541        "youtube", // youtube Charleston Road Registry Inc.
1542        "yun", // yun QIHOO 360 TECHNOLOGY CO. LTD.
1543        "zappos", // zappos Amazon Registry Service, Inc.
1544        "zara", // zara Industria de Diseño Textil, S.A. (INDITEX, S.A.)
1545        "zero", // zero Amazon Registry Services, Inc.
1546        "zip", // zip Charleston Road Registry Inc.
1547        "zippo", // zippo Zadco Company
1548        "zone", // zone Outer Falls, LLC
1549        "zuerich", // zuerich Kanton Zürich (Canton of Zurich)
1550    };
1551
1552    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1553    private static final String[] COUNTRY_CODE_TLDS = new String[] {
1554        "ac",                 // Ascension Island
1555        "ad",                 // Andorra
1556        "ae",                 // United Arab Emirates
1557        "af",                 // Afghanistan
1558        "ag",                 // Antigua and Barbuda
1559        "ai",                 // Anguilla
1560        "al",                 // Albania
1561        "am",                 // Armenia
1562        //"an",               // Netherlands Antilles (retired)
1563        "ao",                 // Angola
1564        "aq",                 // Antarctica
1565        "ar",                 // Argentina
1566        "as",                 // American Samoa
1567        "at",                 // Austria
1568        "au",                 // Australia (includes Ashmore and Cartier Islands and Coral Sea Islands)
1569        "aw",                 // Aruba
1570        "ax",                 // Åland
1571        "az",                 // Azerbaijan
1572        "ba",                 // Bosnia and Herzegovina
1573        "bb",                 // Barbados
1574        "bd",                 // Bangladesh
1575        "be",                 // Belgium
1576        "bf",                 // Burkina Faso
1577        "bg",                 // Bulgaria
1578        "bh",                 // Bahrain
1579        "bi",                 // Burundi
1580        "bj",                 // Benin
1581        "bm",                 // Bermuda
1582        "bn",                 // Brunei Darussalam
1583        "bo",                 // Bolivia
1584        "br",                 // Brazil
1585        "bs",                 // Bahamas
1586        "bt",                 // Bhutan
1587        "bv",                 // Bouvet Island
1588        "bw",                 // Botswana
1589        "by",                 // Belarus
1590        "bz",                 // Belize
1591        "ca",                 // Canada
1592        "cc",                 // Cocos (Keeling) Islands
1593        "cd",                 // Democratic Republic of the Congo (formerly Zaire)
1594        "cf",                 // Central African Republic
1595        "cg",                 // Republic of the Congo
1596        "ch",                 // Switzerland
1597        "ci",                 // Côte d'Ivoire
1598        "ck",                 // Cook Islands
1599        "cl",                 // Chile
1600        "cm",                 // Cameroon
1601        "cn",                 // China, mainland
1602        "co",                 // Colombia
1603        "cr",                 // Costa Rica
1604        "cu",                 // Cuba
1605        "cv",                 // Cape Verde
1606        "cw",                 // Curaçao
1607        "cx",                 // Christmas Island
1608        "cy",                 // Cyprus
1609        "cz",                 // Czech Republic
1610        "de",                 // Germany
1611        "dj",                 // Djibouti
1612        "dk",                 // Denmark
1613        "dm",                 // Dominica
1614        "do",                 // Dominican Republic
1615        "dz",                 // Algeria
1616        "ec",                 // Ecuador
1617        "ee",                 // Estonia
1618        "eg",                 // Egypt
1619        "er",                 // Eritrea
1620        "es",                 // Spain
1621        "et",                 // Ethiopia
1622        "eu",                 // European Union
1623        "fi",                 // Finland
1624        "fj",                 // Fiji
1625        "fk",                 // Falkland Islands
1626        "fm",                 // Federated States of Micronesia
1627        "fo",                 // Faroe Islands
1628        "fr",                 // France
1629        "ga",                 // Gabon
1630        "gb",                 // Great Britain (United Kingdom)
1631        "gd",                 // Grenada
1632        "ge",                 // Georgia
1633        "gf",                 // French Guiana
1634        "gg",                 // Guernsey
1635        "gh",                 // Ghana
1636        "gi",                 // Gibraltar
1637        "gl",                 // Greenland
1638        "gm",                 // The Gambia
1639        "gn",                 // Guinea
1640        "gp",                 // Guadeloupe
1641        "gq",                 // Equatorial Guinea
1642        "gr",                 // Greece
1643        "gs",                 // South Georgia and the South Sandwich Islands
1644        "gt",                 // Guatemala
1645        "gu",                 // Guam
1646        "gw",                 // Guinea-Bissau
1647        "gy",                 // Guyana
1648        "hk",                 // Hong Kong
1649        "hm",                 // Heard Island and McDonald Islands
1650        "hn",                 // Honduras
1651        "hr",                 // Croatia (Hrvatska)
1652        "ht",                 // Haiti
1653        "hu",                 // Hungary
1654        "id",                 // Indonesia
1655        "ie",                 // Ireland (Éire)
1656        "il",                 // Israel
1657        "im",                 // Isle of Man
1658        "in",                 // India
1659        "io",                 // British Indian Ocean Territory
1660        "iq",                 // Iraq
1661        "ir",                 // Iran
1662        "is",                 // Iceland
1663        "it",                 // Italy
1664        "je",                 // Jersey
1665        "jm",                 // Jamaica
1666        "jo",                 // Jordan
1667        "jp",                 // Japan
1668        "ke",                 // Kenya
1669        "kg",                 // Kyrgyzstan
1670        "kh",                 // Cambodia (Khmer)
1671        "ki",                 // Kiribati
1672        "km",                 // Comoros
1673        "kn",                 // Saint Kitts and Nevis
1674        "kp",                 // North Korea
1675        "kr",                 // South Korea
1676        "kw",                 // Kuwait
1677        "ky",                 // Cayman Islands
1678        "kz",                 // Kazakhstan
1679        "la",                 // Laos (currently being marketed as the official domain for Los Angeles)
1680        "lb",                 // Lebanon
1681        "lc",                 // Saint Lucia
1682        "li",                 // Liechtenstein
1683        "lk",                 // Sri Lanka
1684        "lr",                 // Liberia
1685        "ls",                 // Lesotho
1686        "lt",                 // Lithuania
1687        "lu",                 // Luxembourg
1688        "lv",                 // Latvia
1689        "ly",                 // Libya
1690        "ma",                 // Morocco
1691        "mc",                 // Monaco
1692        "md",                 // Moldova
1693        "me",                 // Montenegro
1694        "mg",                 // Madagascar
1695        "mh",                 // Marshall Islands
1696        "mk",                 // Republic of Macedonia
1697        "ml",                 // Mali
1698        "mm",                 // Myanmar
1699        "mn",                 // Mongolia
1700        "mo",                 // Macau
1701        "mp",                 // Northern Mariana Islands
1702        "mq",                 // Martinique
1703        "mr",                 // Mauritania
1704        "ms",                 // Montserrat
1705        "mt",                 // Malta
1706        "mu",                 // Mauritius
1707        "mv",                 // Maldives
1708        "mw",                 // Malawi
1709        "mx",                 // Mexico
1710        "my",                 // Malaysia
1711        "mz",                 // Mozambique
1712        "na",                 // Namibia
1713        "nc",                 // New Caledonia
1714        "ne",                 // Niger
1715        "nf",                 // Norfolk Island
1716        "ng",                 // Nigeria
1717        "ni",                 // Nicaragua
1718        "nl",                 // Netherlands
1719        "no",                 // Norway
1720        "np",                 // Nepal
1721        "nr",                 // Nauru
1722        "nu",                 // Niue
1723        "nz",                 // New Zealand
1724        "om",                 // Oman
1725        "pa",                 // Panama
1726        "pe",                 // Peru
1727        "pf",                 // French Polynesia With Clipperton Island
1728        "pg",                 // Papua New Guinea
1729        "ph",                 // Philippines
1730        "pk",                 // Pakistan
1731        "pl",                 // Poland
1732        "pm",                 // Saint-Pierre and Miquelon
1733        "pn",                 // Pitcairn Islands
1734        "pr",                 // Puerto Rico
1735        "ps",                 // Palestinian territories (PA-controlled West Bank and Gaza Strip)
1736        "pt",                 // Portugal
1737        "pw",                 // Palau
1738        "py",                 // Paraguay
1739        "qa",                 // Qatar
1740        "re",                 // Réunion
1741        "ro",                 // Romania
1742        "rs",                 // Serbia
1743        "ru",                 // Russia
1744        "rw",                 // Rwanda
1745        "sa",                 // Saudi Arabia
1746        "sb",                 // Solomon Islands
1747        "sc",                 // Seychelles
1748        "sd",                 // Sudan
1749        "se",                 // Sweden
1750        "sg",                 // Singapore
1751        "sh",                 // Saint Helena
1752        "si",                 // Slovenia
1753        "sj",                 // Svalbard and Jan Mayen Islands Not in use (Norwegian dependencies; see .no)
1754        "sk",                 // Slovakia
1755        "sl",                 // Sierra Leone
1756        "sm",                 // San Marino
1757        "sn",                 // Senegal
1758        "so",                 // Somalia
1759        "sr",                 // Suriname
1760        "st",                 // São Tomé and Príncipe
1761        "su",                 // Soviet Union (deprecated)
1762        "sv",                 // El Salvador
1763        "sx",                 // Sint Maarten
1764        "sy",                 // Syria
1765        "sz",                 // Swaziland
1766        "tc",                 // Turks and Caicos Islands
1767        "td",                 // Chad
1768        "tf",                 // French Southern and Antarctic Lands
1769        "tg",                 // Togo
1770        "th",                 // Thailand
1771        "tj",                 // Tajikistan
1772        "tk",                 // Tokelau
1773        "tl",                 // East Timor (deprecated old code)
1774        "tm",                 // Turkmenistan
1775        "tn",                 // Tunisia
1776        "to",                 // Tonga
1777        //"tp",               // East Timor (Retired)
1778        "tr",                 // Turkey
1779        "tt",                 // Trinidad and Tobago
1780        "tv",                 // Tuvalu
1781        "tw",                 // Taiwan, Republic of China
1782        "tz",                 // Tanzania
1783        "ua",                 // Ukraine
1784        "ug",                 // Uganda
1785        "uk",                 // United Kingdom
1786        "us",                 // United States of America
1787        "uy",                 // Uruguay
1788        "uz",                 // Uzbekistan
1789        "va",                 // Vatican City State
1790        "vc",                 // Saint Vincent and the Grenadines
1791        "ve",                 // Venezuela
1792        "vg",                 // British Virgin Islands
1793        "vi",                 // U.S. Virgin Islands
1794        "vn",                 // Vietnam
1795        "vu",                 // Vanuatu
1796        "wf",                 // Wallis and Futuna
1797        "ws",                 // Samoa (formerly Western Samoa)
1798        "xn--3e0b707e", // 한국 KISA (Korea Internet &amp; Security Agency)
1799        "xn--45brj9c", // ভারত National Internet Exchange of India
1800        "xn--80ao21a", // қаз Association of IT Companies of Kazakhstan
1801        "xn--90a3ac", // срб Serbian National Internet Domain Registry (RNIDS)
1802        "xn--90ais", // ??? Reliable Software Inc.
1803        "xn--clchc0ea0b2g2a9gcd", // சிங்கப்பூர் Singapore Network Information Centre (SGNIC) Pte Ltd
1804        "xn--d1alf", // мкд Macedonian Academic Research Network Skopje
1805        "xn--e1a4c", // ею EURid vzw/asbl
1806        "xn--fiqs8s", // 中国 China Internet Network Information Center
1807        "xn--fiqz9s", // 中國 China Internet Network Information Center
1808        "xn--fpcrj9c3d", // భారత్ National Internet Exchange of India
1809        "xn--fzc2c9e2c", // ලංකා LK Domain Registry
1810        "xn--gecrj9c", // ભારત National Internet Exchange of India
1811        "xn--h2brj9c", // भारत National Internet Exchange of India
1812        "xn--j1amh", // укр Ukrainian Network Information Centre (UANIC), Inc.
1813        "xn--j6w193g", // 香港 Hong Kong Internet Registration Corporation Ltd.
1814        "xn--kprw13d", // 台湾 Taiwan Network Information Center (TWNIC)
1815        "xn--kpry57d", // 台灣 Taiwan Network Information Center (TWNIC)
1816        "xn--l1acc", // мон Datacom Co.,Ltd
1817        "xn--lgbbat1ad8j", // الجزائر CERIST
1818        "xn--mgb9awbf", // عمان Telecommunications Regulatory Authority (TRA)
1819        "xn--mgba3a4f16a", // ایران Institute for Research in Fundamental Sciences (IPM)
1820        "xn--mgbaam7a8h", // امارات Telecommunications Regulatory Authority (TRA)
1821        "xn--mgbayh7gpa", // الاردن National Information Technology Center (NITC)
1822        "xn--mgbbh1a71e", // بھارت National Internet Exchange of India
1823        "xn--mgbc0a9azcg", // المغرب Agence Nationale de Réglementation des Télécommunications (ANRT)
1824        "xn--mgberp4a5d4ar", // السعودية Communications and Information Technology Commission
1825        "xn--mgbpl2fh", // ????? Sudan Internet Society
1826        "xn--mgbtx2b", // عراق Communications and Media Commission (CMC)
1827        "xn--mgbx4cd0ab", // مليسيا MYNIC Berhad
1828        "xn--mix891f", // 澳門 Bureau of Telecommunications Regulation (DSRT)
1829        "xn--node", // გე Information Technologies Development Center (ITDC)
1830        "xn--o3cw4h", // ไทย Thai Network Information Center Foundation
1831        "xn--ogbpf8fl", // سورية National Agency for Network Services (NANS)
1832        "xn--p1ai", // рф Coordination Center for TLD RU
1833        "xn--pgbs0dh", // تونس Agence Tunisienne d&#39;Internet
1834        "xn--qxam", // ελ ICS-FORTH GR
1835        "xn--s9brj9c", // ਭਾਰਤ National Internet Exchange of India
1836        "xn--wgbh1c", // مصر National Telecommunication Regulatory Authority - NTRA
1837        "xn--wgbl6a", // قطر Communications Regulatory Authority
1838        "xn--xkc2al3hye2a", // இலங்கை LK Domain Registry
1839        "xn--xkc2dl3a5ee0h", // இந்தியா National Internet Exchange of India
1840        "xn--y9a3aq", // ??? Internet Society
1841        "xn--yfro4i67o", // 新加坡 Singapore Network Information Centre (SGNIC) Pte Ltd
1842        "xn--ygbi2ammx", // فلسطين Ministry of Telecom &amp; Information Technology (MTIT)
1843        "ye",                 // Yemen
1844        "yt",                 // Mayotte
1845        "za",                 // South Africa
1846        "zm",                 // Zambia
1847        "zw",                 // Zimbabwe
1848    };
1849
1850    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1851    private static final String[] LOCAL_TLDS = new String[] {
1852       "localdomain",         // Also widely used as localhost.localdomain
1853       "localhost",           // RFC2606 defined
1854    };
1855
1856    // Additional arrays to supplement or override the built in ones.
1857    // The PLUS arrays are valid keys, the MINUS arrays are invalid keys
1858
1859    /*
1860     * This field is used to detect whether the getInstance has been called.
1861     * After this, the method updateTLDOverride is not allowed to be called.
1862     * This field does not need to be volatile since it is only accessed from
1863     * synchronized methods.
1864     */
1865    private static boolean inUse;
1866
1867    /*
1868     * These arrays are mutable, but they don't need to be volatile.
1869     * They can only be updated by the updateTLDOverride method, and any readers must get an instance
1870     * using the getInstance methods which are all (now) synchronised.
1871     */
1872    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1873    private static volatile String[] countryCodeTLDsPlus = EMPTY_STRING_ARRAY;
1874
1875    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1876    private static volatile String[] genericTLDsPlus = EMPTY_STRING_ARRAY;
1877
1878    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1879    private static volatile String[] countryCodeTLDsMinus = EMPTY_STRING_ARRAY;
1880
1881    // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1882    private static volatile String[] genericTLDsMinus = EMPTY_STRING_ARRAY;
1883
1884    /**
1885     * enum used by {@link DomainValidator#updateTLDOverride(ArrayType, String[])}
1886     * to determine which override array to update / fetch
1887     * @since 1.5.0
1888     * @since 1.5.1 made public and added read-only array references
1889     */
1890    public enum ArrayType {
1891        /** Update (or get a copy of) the GENERIC_TLDS_PLUS table containing additonal generic TLDs */
1892        GENERIC_PLUS,
1893        /** Update (or get a copy of) the GENERIC_TLDS_MINUS table containing deleted generic TLDs */
1894        GENERIC_MINUS,
1895        /** Update (or get a copy of) the COUNTRY_CODE_TLDS_PLUS table containing additonal country code TLDs */
1896        COUNTRY_CODE_PLUS,
1897        /** Update (or get a copy of) the COUNTRY_CODE_TLDS_MINUS table containing deleted country code TLDs */
1898        COUNTRY_CODE_MINUS,
1899        /** Get a copy of the generic TLDS table */
1900        GENERIC_RO,
1901        /** Get a copy of the country code table */
1902        COUNTRY_CODE_RO,
1903        /** Get a copy of the infrastructure table */
1904        INFRASTRUCTURE_RO,
1905        /** Get a copy of the local table */
1906        LOCAL_RO
1907    }
1908
1909    // For use by unit test code only
1910    static synchronized void clearTLDOverrides() {
1911        inUse = false;
1912        countryCodeTLDsPlus = EMPTY_STRING_ARRAY;
1913        countryCodeTLDsMinus = EMPTY_STRING_ARRAY;
1914        genericTLDsPlus = EMPTY_STRING_ARRAY;
1915        genericTLDsMinus = EMPTY_STRING_ARRAY;
1916    }
1917
1918    /**
1919     * Update one of the TLD override arrays.
1920     * This must only be done at program startup, before any instances are accessed using getInstance.
1921     * <p>
1922     * For example:
1923     * <p>
1924     * <code>DomainValidator.updateTLDOverride(ArrayType.GENERIC_PLUS, new String[]{"apache"})}</code>
1925     * <p>
1926     * To clear an override array, provide an empty array.
1927     *
1928     * @param table the table to update, see {@link DomainValidator.ArrayType}
1929     * Must be one of the following
1930     * <ul>
1931     * <li>COUNTRY_CODE_MINUS</li>
1932     * <li>COUNTRY_CODE_PLUS</li>
1933     * <li>GENERIC_MINUS</li>
1934     * <li>GENERIC_PLUS</li>
1935     * </ul>
1936     * @param tlds the array of TLDs, must not be null
1937     * @throws IllegalStateException if the method is called after getInstance
1938     * @throws IllegalArgumentException if one of the read-only tables is requested
1939     * @since 1.5.0
1940     */
1941    public static synchronized void updateTLDOverride(ArrayType table, String... tlds) {
1942        if (inUse) {
1943            throw new IllegalStateException("Can only invoke this method before calling getInstance");
1944        }
1945        String[] copy = new String[tlds.length];
1946        // Comparisons are always done with lower-case entries
1947        for (int i = 0; i < tlds.length; i++) {
1948            copy[i] = tlds[i].toLowerCase(Locale.ENGLISH);
1949        }
1950        Arrays.sort(copy);
1951        switch(table) {
1952        case COUNTRY_CODE_MINUS:
1953            countryCodeTLDsMinus = copy;
1954            break;
1955        case COUNTRY_CODE_PLUS:
1956            countryCodeTLDsPlus = copy;
1957            break;
1958        case GENERIC_MINUS:
1959            genericTLDsMinus = copy;
1960            break;
1961        case GENERIC_PLUS:
1962            genericTLDsPlus = copy;
1963            break;
1964        case COUNTRY_CODE_RO:
1965        case GENERIC_RO:
1966        case INFRASTRUCTURE_RO:
1967        case LOCAL_RO:
1968            throw new IllegalArgumentException("Cannot update the table: " + table);
1969        default:
1970            throw new IllegalArgumentException("Unexpected enum value: " + table);
1971        }
1972    }
1973
1974    /**
1975     * Get a copy of the internal array.
1976     * @param table the array type (any of the enum values)
1977     * @return a copy of the array
1978     * @throws IllegalArgumentException if the table type is unexpected (should not happen)
1979     * @since 1.5.1
1980     */
1981    public static String[] getTLDEntries(ArrayType table) {
1982        final String[] array;
1983        switch(table) {
1984        case COUNTRY_CODE_MINUS:
1985            array = countryCodeTLDsMinus;
1986            break;
1987        case COUNTRY_CODE_PLUS:
1988            array = countryCodeTLDsPlus;
1989            break;
1990        case GENERIC_MINUS:
1991            array = genericTLDsMinus;
1992            break;
1993        case GENERIC_PLUS:
1994            array = genericTLDsPlus;
1995            break;
1996        case GENERIC_RO:
1997            array = GENERIC_TLDS;
1998            break;
1999        case COUNTRY_CODE_RO:
2000            array = COUNTRY_CODE_TLDS;
2001            break;
2002        case INFRASTRUCTURE_RO:
2003            array = INFRASTRUCTURE_TLDS;
2004            break;
2005        case LOCAL_RO:
2006            array = LOCAL_TLDS;
2007            break;
2008        default:
2009            throw new IllegalArgumentException("Unexpected enum value: " + table);
2010        }
2011        return Arrays.copyOf(array, array.length); // clone the array
2012    }
2013
2014    /**
2015     * Converts potentially Unicode input to punycode.
2016     * If conversion fails, returns the original input.
2017     *
2018     * @param input the string to convert, not null
2019     * @return converted input, or original input if conversion fails
2020     */
2021    // Needed by UrlValidator
2022    static String unicodeToASCII(String input) {
2023        if (isOnlyASCII(input)) { // skip possibly expensive processing
2024            return input;
2025        }
2026        try {
2027            final String ascii = IDN.toASCII(input);
2028            if (IdnBugHolder.IDN_TOASCII_PRESERVES_TRAILING_DOTS) {
2029                return ascii;
2030            }
2031            final int length = input.length();
2032            if (length == 0) { // check there is a last character
2033                return input;
2034            }
2035            // RFC3490 3.1. 1)
2036            //            Whenever dots are used as label separators, the following
2037            //            characters MUST be recognized as dots: U+002E (full stop), U+3002
2038            //            (ideographic full stop), U+FF0E (fullwidth full stop), U+FF61
2039            //            (halfwidth ideographic full stop).
2040            char lastChar = input.charAt(length-1); // fetch original last char
2041            switch(lastChar) {
2042                case '\u002E': // "." full stop
2043                case '\u3002': // ideographic full stop
2044                case '\uFF0E': // fullwidth full stop
2045                case '\uFF61': // halfwidth ideographic full stop
2046                    return ascii + '.'; // restore the missing stop
2047                default:
2048                    return ascii;
2049            }
2050        } catch (IllegalArgumentException e) { // input is not valid
2051            Logging.trace(e);
2052            return input;
2053        }
2054    }
2055
2056    private static class IdnBugHolder {
2057        private static boolean keepsTrailingDot() {
2058            final String input = "a."; // must be a valid name
2059            return input.equals(IDN.toASCII(input));
2060        }
2061
2062        private static final boolean IDN_TOASCII_PRESERVES_TRAILING_DOTS = keepsTrailingDot();
2063    }
2064
2065    /*
2066     * Check if input contains only ASCII
2067     * Treats null as all ASCII
2068     */
2069    private static boolean isOnlyASCII(String input) {
2070        if (input == null) {
2071            return true;
2072        }
2073        for (int i = 0; i < input.length(); i++) {
2074            if (input.charAt(i) > 0x7F) { // CHECKSTYLE IGNORE MagicNumber
2075                return false;
2076            }
2077        }
2078        return true;
2079    }
2080
2081    /**
2082     * Check if a sorted array contains the specified key
2083     *
2084     * @param sortedArray the array to search
2085     * @param key the key to find
2086     * @return {@code true} if the array contains the key
2087     */
2088    private static boolean arrayContains(String[] sortedArray, String key) {
2089        return Arrays.binarySearch(sortedArray, key) >= 0;
2090    }
2091}