Check for DNS record using PowerShell 2.0

Question:

What could be the best way to resolve a computer name apart from using:

I dont want to import any specific DNS Modules.

Answer:

You can try the GetHostEntry method:

Another way would be to ping it using Test-Connection cmdlet, see this tip

Source:

Check for DNS record using PowerShell 2.0 by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply