That example looks like a user. There is no dnsHostName property for User class objects.