package
module
Version:
v0.0.0-...-076a1cd
Opens a new window with list of versions in this module.
Published: Dec 31, 2016
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
VDN - valid domain name

VDN(valid domain name) is used to check if s string is a valid domain name
Criteria
A complete domain name is valid if it meets the following criteria:
- A complete domain name must have one or more subdomain names and one top-level domain name.
- A complete domain name must use dots (.) to separate domain names.
- Domain names must use only alphanumeric characters and dashes (-).
- Domain and subdomain names must not begin or end with dashes (-).
- Domain names must mot have more than 63 characters.
- The top-level domain name must be one of the predefined top-level domain names, like (com), (org), or (ca)
TODO
Ref
rfc1035
rfc3696
top-level domain db
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.