Ironman Software Forums
Continue the conversion on the Ironman Software forums. Chat with over 1000 users about PowerShell, PowerShell Universal, and PowerShell Pro Tools.

Discuss this ArticleResolve-DnsName is similar to dig within BIND.
This command has been around since PowerShell v3. This post will look at comparisons between dig commands and Resolve-DnsName.
Resolve IPv4 records for the host name.
dig ironmansoftware.com A
Resolve-DnsName -Name ironmansoftware.com -Type A
Resolve IPv6 records for the host.
dig ironmansoftware.com AAAA
Resolve-DnsName -Name ironmansoftware.com -Type AAAA
Resolve MX records for the host.
dig mx ironmansoftware.com
Resolve-DnsName -Name ironmansoftware.com -Type MX
Resolve the host name using a custom name server.
dig A ironmansoftware.com @8.8.8.8
Resolve-DnsName -Name ironmansoftware.com -Type A -Server 8.8.8.8
Find this useful? Please consider sharing this article. Have a question about PowerShell? Contact us and we'll write a post about it.
Continue the conversion on the Ironman Software forums. Chat with over 1000 users about PowerShell, PowerShell Universal, and PowerShell Pro Tools.