Implement setdomainname