The -ComputerName parameter on this cmdlet is looking for the name of your DNS server. Perhaps you are supplying the name of the record you are searching for? Try something like this
Thanks for the catch L-bo. To be fair, on the next page Siddaway does state that the -ComputerName parameter is indeed the name of the DNS server. I changed my test one liner, as well as ran your snippet of code and both work.
Hey Jeff, Just to add here. Whenever the cmdlet you are running gives you an error like this, look in the inbuilt help system for PowerShell. If you haven’t done so already run an elevated PowerShell prompt and run Update-Help. This will grab any help the system can find for any modules you have on your system that have updateable help.
Once that is done run Help
help Get-DnsServerResourceRecord -ShowWindow
this will pop open a separate window with the full help for that cmdlet, parameters and what each param does and more importantly its examples.