Skip to content
Unverified Commit 993baa58 authored by Michael Weiss's avatar Michael Weiss
Browse files

nixos: Require networking.hostName to be a valid DNS label

This also means that the hostname must not contain the domain name part
anymore (i.e. must not be a FQDN).
See RFC 1035 [0], "man 5 hostname", or the kernel documentation [1].
Note: For legacy reasons we also allow underscores inside of the label
but this is not recommended and intentionally left undocumented.

[0]: https://tools.ietf.org/html/rfc1035
[1]: https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#domainname-hostname



Co-authored-by: default avatarzimbatm <zimbatm@zimbatm.com>
parent 837ec314
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment