Resolve-DnsName PowerShell command
Every now and then you find these small little things that turn out to be very useful. The Resolve-DnsName cmdlet in PowerShell is such a brilliant thing, and it is a nice replacement for NSLOOKUP. Since it is a PowerShell cmdlet you can easily use it in scripts. It looks like this command was introduced in windows Server 2012 R2, but I found out only a couple of days ago.
As an Exchange consultant I can use the Resolve-DnsName for retrieving my MX records, or my DMARC record:
Using the Get-Help Resolve-DnsName command you can get more information, if you need some examples on how to use it you can use the -Examples option, or the -Detailed and -Full options.
Very useful for an Exchange admin, and it can be used in PowerShell scripts.
本文系统（windows）相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术