Univention Bugzilla – Bug 20482
UDM allows to create invalid hostnames
Last modified: 2022-06-30 14:39:13 CEST
When adding a Computer in UDM, it allows underscores (‘_’) in the “Hostname (*)” field, which are illegal in DNS though. As the hostname is used as part of the DNS FQDN, errors are guaranteed to ensue later. Please implement sanity checks for hostnames according to the appropriate RFCs (AFAICR, the regexp is [a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])* – i.e. alphanumerical, with a hyphen-minus allowed but not as first or last cha- racter – per dot-separated FQDN part).
This should be checked but we should also consider the AD behave.
*** Bug 31798 has been marked as a duplicate of this bug. ***
(In reply to Philipp Hahn from Bug #31798 comment #2) > (In reply to Jan Christoph Ebersbach from comment #1) > > Actually, this is a DNS issue. Hostnames must not include underscores! > > Yes and no: DNS allows underscores: RFC 1034, section 3.5 "Preferred name > syntax", but host-names are letters-digits-hyphen only: RFC 1123, section > 2.1 "Host Names and Numbers. > > See <http://www.c3.hu/docs/oreilly/tcpip/dnsbind/ch04_05.htm> and > <http://stackoverflow.com/questions/2180465/can-someone-have-a-subdomain- > with-an-underscore-in-it> for more details.
*** Bug 29700 has been marked as a duplicate of this bug. ***
This issue has been filed against UCS 2.4. UCS 2.4 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug". In this case please provide detailed information on how this issue is affecting you.