A domain name parser to parse and to validate a domain name.