I don't have any 3.5 U5 hosts in the environment, but I do still have some older 3.5 U4 hosts. Every single one of these scripts works on those hosts for me. Not sure what is going on with your environment, but for what it is worth, here's another option to try that should be a little quicker (if it works):
Get-View -ViewType HostSystem -Property Config.Network.DnsConfig.Address,Name | Select-Object Name, @{N="DNS Servers";E={$_.Config.Network.DnsConfig.Address}}