PowerShell v3 and below does not have any built in commandlets to assist with DNS resolution. Additionally even if you have a higher version of PowerShell, these commandlets will still not be available unless you are running Windows 8.1 or Windows Server 2012 R2.
This script uses NSLOOKUP to query DNS records and converts the output to a PowerShell object that can be used more easily in scripts that need to perform DNS lookups. Currently it only support A, CNAME and SRV records.
Due to the complexities of parsing text returned by NSLOOKUP, you may find that some DNS servers results may be incorrectly handled. If you experience this please let me know the circumstances and I will attempt to resolve the issue in a future release.