Feature #3701
closedFail if a hostname has a dot in it
Description
Today a colleague created a new host for building, he entered hostname.customername as "Name" and selected company.tld as domain (this was a wrong precedure anyway...). A host with the correct FQDN was created in Foreman, but the machine's FQDN was hostname.company.tld and with this is was auto-created in foreman again. It would be nice if there would be a check for dots in the hostname when creating a new host.
Updated by Dominic Cleal almost 11 years ago
- Related to Bug #3697: Field Validations Should be more Comprehensive added
Updated by Stephen Benjamin almost 11 years ago
- Assignee set to Stephen Benjamin
Historically it's been allowed to have hostnames with a "." in them. IIRC, even bind allows an A record "foo.bar" in zone "example.com". There's an open request in puppet labs for facter to support that scenario: http://projects.puppetlabs.com/issues/9766. But facter doesn't, and there's probably any number of other issues with doing it.
So I included this in the PR I have for the other validation effort: https://github.com/theforeman/foreman/pull/1041
Updated by Dominic Cleal almost 11 years ago
- Category set to Host creation
- Status changed from New to Ready For Testing
- Target version set to 1.9.2
- Translation missing: en.field_release set to 2
Updated by Anonymous almost 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 4bae5cedb8ab562b6c397234c5cb1cfd604fde74.