Validate the hostname setting