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

Last change on this file since 18970 was 18970, checked in by taylor.smock, 3 months ago

remove TLD from IANA

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