the hostname should be fullyQualifiedDomainName instead of hostname, otherwise you dont know the full name.