Skip to content

Interface: DomainOptions

Properties

PropertyTypeDescription
allowFullyQualified?booleanif true, domains ending with a . character are permitted Default false
allowUnderscore?booleanIf true, underscores (_) are allowed in the domain name Default false
allowUnicode?booleanIf true, Unicode characters are permitted Default true
maxDomainSegments?numberThe maximum number of domain segments (e.g. x.y.z has 3 segments) allowed. Defaults to no limit. Default Infinity
minDomainSegments?numberNumber of segments required for the domain. Default 2
tlds?false | TopLevelDomainOptionsOptions for TLD (top level domain) validation. By default, the TLD must be a valid name listed on the IANA registry Default { allow: true }