Fix input validation of custom-type dynamic DNS hostnames.