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

Last change on this file since 16795 was 16795, checked in by Klumbumbus, 4 years ago

remove TLD from IANA

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