Datatypes

Top level domain (TLD)

ID tld

DatatypeNot PIIidentifier

Last label of a domain name, the level directly below the DNS root, such as com, org, ru or de. Country-code TLDs have two letters and mostly follow ISO 3166-1 alpha-2 codes; generic TLDs such as com, info or app are longer. Internationalized TLDs are stored in Punycode form starting with xn--, such as xn--p1ai for .рф. IANA lists the delegated TLDs in the Root Zone Database. Data often writes a TLD with a leading dot, which the regexp allows; the regexp checks the form, not whether the TLD is delegated.

Categories
Internet
Countries
Global (not tied to a country)
Languages
Common to most languages
Wikidata
P78
Quality
100/100
Metacrafter rules
no detection rule yet
Supported by tools
Great Expectations Semantic Types Expectations

Regular expression

^\.?(?:[A-Za-z]{2,63}|[Xx][Nn]--[A-Za-z0-9-]{1,59})$

Python re syntax.

Examples

ValueDescription
comGeneric TLD
.orgGeneric TLD written with a leading dot
ruCountry-code TLD of Russia
xn--p1aiInternationalized country-code TLD .рф in Punycode
example.com invalidA domain name with two labels
c invalidOne letter; TLDs have at least two characters

Translations

LanguageNameDescription
RussianДомен верхнего уровня (TLD)Последняя метка доменного имени, например com, org или ru; национальные домены состоят из двух букв.

Sources

Use this record