Extraneous results returned with Resolve-DnsName (dnsclient)
Quoted feedback from documentation feedback provided by MSFT team below. (via @jordanmills)
> When resolving SRV records (example: Resolve-DnsName -Name "_kerberos._tcp.dc._msdcs.$env:userdnsdomain" -Type SRV), the cmdlets also attempts to resolve any returned A or AAAA records and sends them to the pipeline as a separate object collection. This breaks pretty much any attempt to sort, group, filter, or otherwise process the data. How can we make it not return A and AAAA records for SRV queries?
This also happens with "Resolve-DnsName -Name <FQDN> -Type A". It returns A and CNAME records. The Type parameter needs to only return what is specified and not include extra random stuff.