making sure that the hostname is in lowercase otherwise mariadb breaks

Apparently there is no reason to have upper-case in the first place as the dns records are case insensitive