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