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

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

fix TLD order

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