Interface: DomainOptions
Properties
| Property | Type | Description |
|---|---|---|
allowFullyQualified? | boolean | if true, domains ending with a . character are permitted Default false |
allowUnderscore? | boolean | If true, underscores (_) are allowed in the domain name Default false |
allowUnicode? | boolean | If true, Unicode characters are permitted Default true |
maxDomainSegments? | number | The maximum number of domain segments (e.g. x.y.z has 3 segments) allowed. Defaults to no limit. Default Infinity |
minDomainSegments? | number | Number of segments required for the domain. Default 2 |
tlds? | false | TopLevelDomainOptions | Options for TLD (top level domain) validation. By default, the TLD must be a valid name listed on the IANA registry Default { allow: true } |