What are the DNS 952 subdomain conventions

Viewed 620

Ran into an error with my Openshift configuration saying my route must conform to the DNS 952 subdomain conventions.

What are they?

2 Answers

According to Microsoft's article about naming conventions

For DNS host names:

DNS names can contain only alphabetical characters (A-Z), numeric characters (0-9), the minus sign (-), and the period (.). Period characters are allowed only when they are used to delimit the components of domain style names.

and the disallowed characters are:

DNS host names can't contain the following characters: comma (,), tilde (~), colon (:), exclamation point (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), apostrophe ('), period (.), parentheses (()), braces ({}), underscore (_), and white space (blank)

So if you configure Openshift using a template.yml be sure to not have any extra braces (from parameters), or use any of the other illegal characters.

Related