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

Last change on this file since 19111 was 19111, checked in by taylor.smock, 2 weeks ago

remove TLD from IANA

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