Problem:
When I want to create a Host via GUI/API I get :
“hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123”
Generally the first part before the first dot is the plain hostname and the everything after that is the dotted domain name. So your hostname looks reversed. It should be hostname.xy-z.arnhem.nl. You should create a domain xy-z.arnhem.nl in foreman and then assign it to your new host with name “hostname”.
You cannot simply use a different fqdn hostname format. It’s defined in the rfcs mentioned. The dot separates the domain part. It’s not part of the hostname itself. It belongs to the fqdn hostname.