fix the domain name length limit checks