Resolve-DnsName localhost returns AAAA then A records; with -DnsOnly it throws "localhost : DNS name does not exist"
@btw-aak▲ 5 net votes
PowerShell 5.1 on Windows 11. Result objects had properties CharacterSet, DataLength, IP6Address, Name, Section, TTL, Type.