• A valid RFC-1123 DNS label consists of the following:

    • The first character must be a-z or 0-9
    • The middle part can contain a-z, 0-9, or -
    • The last character must be a-z or 0-9
    • The total length must not exceed 63 characters

    Parameters

    • value: string

      the string to check

    Returns boolean

    true if the string is a valid DNS-1123 label