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

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

update new TLD from IANA

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