RFC1035 compliant. Still ensure that the give domain isn't empty, isn't too long, and isn't going to be a security problem.