SYNTAX02: No hyphen ('-') at the start or end of the domain name
Test case identifier
SYNTAX02 No hyphen ('-') at the start or end of the domain name
Objective
There must be no hyphen ('-') at the start or end of the domain name. The domain name must follow the rules defined in section 2.3.1 of RFC 1035, section 2.1 of RFC 1123, section 11 of RFC 2182 and section 2 of RFC 3696.
Inputs
The domain name to be tested.
Ordered description of steps to be taken to execute the test case
- Each label of the domain name of the test object is used as the input for the validation.
- If any label in the domain name start with a hyphen ('-') this test case fails.
- If any label in the domain name ends with a hyphen ('-') this test case fails.
Outcome(s)
If any label in the domain name start or ends with a hyphen ('-') this test case fails.
Special procedural requirements
None.
Intercase dependencies
None.