define a domain name through the class hook