source: josm/trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java@ 17508

Last change on this file since 17508 was 17508, checked in by Don-vip, 3 years ago

update TLD from IANA

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