Check RFC 1123 hostname labels, lengths, and allowed hyphens.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The lowercased hostname is split into labels, checked against 63-character label and 253-character total limits, and each label must start and end with a letter or digit while allowing internal hyphens. A single label is allowed because no public TLD is required.
web-server-01.us-east.example.com
Valid hostname: web-server-01.us-east.example.com
Server configs, Kubernetes services, and TLS DNS names validate hostnames.