Windows: DNS PowerShell Hackz

Created: 8-30-17

Updated: 8-30-17

Hey peeps,

Been getting up lately at like 3 or 4 am consistently now for the past few months since starting intermittent fasting (no I’m not dead yet, fasting is not unhealthy, research it yourself, it’s very good for the body and mind), brew the coffee and get ready for work like 6 hours early!

Wrote up this article too, been busy! 🙂

Intermittent Fasting


So to kill time, I just start using the pullup bar for like 30 minutes and pushups for another 20, then my mind drifts. Now that my endorphins are pumping thru my veins, but hey I like being a fit nerdy guy.

After my workout, onward to cleaning the pad however I find Neato does a pretty good job. I wish they made a automated dish washer.  😉

Afterwards,  I start reading and then my mind wanders again, cause like all nerds, you learn something and you want to get into the code and figure it out and engineer something with that knowledge, so here I am at 4:25 am labbing, studying, and in the lab…..

But wait this is a technical blog, but meh it’s my blog so I’ll type what I want, lol. Read someplace the most successful people in the world start their day at 3 am, I see why, you GET SO MUCH DONE!

ahh yes it was this video:



so I admit, I’ve been using PowerShell a whole lot more. 🙂

So I wanted to prevent a DNS server from performing iterative queries, so found this useful command:


After doing this command I was curious, what else can I do for DNS via PowerShell and I found these cool things. Beginining to see, there is much you can’t do with Powershell.

Like here is a very useful one, adding tow DNS records to a interface:

PS C:\> Set-DnsClientServerAddress -InterfaceIndex 15 -ServerAddresses


I guess I’ll update this as I find useful ones and start using them. Got a feeling as I study farther into 2012 and soon 2016 I’ll use these commands very often. 😀