Make a DNS resolution with PowerShell


You can make a DNS resolution with PowerShell with a nice .Net class :



The output is an object, so it’s “pipeable” and selectable.

You can have all the others methods with :

[System.Net.Dns] | Get-Member -Static


Be careful, some of them are “obsolete”, you can check that on MSDN :

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.