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

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

fix TLD order, causing unit test failure

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