update length of hostname (like RFC1035; limits.h)