This is just a short note about Get-DNS (my dig for PowerShell cmdlet). Someone emailed me to ask how they could specify the dns servers, and the answer was that you couldn’t. So then I looked a bit deeper, and realized that the code I copied from CodeProject already had support for that, so I whipped up a new version which you can download here (source here under GPL).
The only real difference is the addition of a -DnsServers parameter which accepts one or more dns server ip addresses. NOTE: they must be IP Addresses, not domain names (sorry, I was lazy, Maybe if someone I’ll make sure that gets tweaked eventually). You may include the port (eg: 71.6.202.220:53) but you don’t have to unless it’s non-standard (ie: not port 53). You may specify multiple servers if you need a fallback … and as always, if you leave it off, the cmdlet will use your default DNS servers.
Have fun, and uhm, feel free to tip the waiter.