35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
|
|
## 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](https://datatracker.ietf.org/doc/html/rfc1035),
|
||
|
|
section 2.1 of [RFC 1123](https://datatracker.ietf.org/doc/html/rfc1123#section-2.1), section 11 of
|
||
|
|
[RFC 2182](https://datatracker.ietf.org/doc/html/rfc2181#section-11) and section 2 of
|
||
|
|
[RFC 3696](https://datatracker.ietf.org/doc/html/rfc3696#section-2).
|
||
|
|
|
||
|
|
### Inputs
|
||
|
|
|
||
|
|
The domain name to be tested.
|
||
|
|
|
||
|
|
### Ordered description of steps to be taken to execute the test case
|
||
|
|
|
||
|
|
1. Each label of the domain name of the test object is used as the input for the validation.
|
||
|
|
2. If any label in the domain name start with a hyphen ('-') this test case fails.
|
||
|
|
3. 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.
|