Skip to content

Instantly share code, notes, and snippets.

@ludwigschuster
Created February 24, 2017 15:27
Show Gist options
  • Save ludwigschuster/2a410b5d6119e441548577c522fd201f to your computer and use it in GitHub Desktop.
Save ludwigschuster/2a410b5d6119e441548577c522fd201f to your computer and use it in GitHub Desktop.
get Host IP adresses with Powershell
for($i=1;$i -le 31;$i++){if($i -le 9){Resolve-DnsName("DNS0"+$i+"domain")}else{Resolve-DnsName("DNS"+$i+"domain")}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment