removed getdomainname() stuff and appending a '.' to the name in