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

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

update new TLD from IANA

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