Domain name manipulation functions