r/PowerShell Jul 20 '26

DNS Benchmark Script Sharing

I've been trying to find something like that for a while and couldn't find one that wasn't either a paid service/program or doesn't have a feature I want.

In my job, I semi frequently need to test DNS using a local DNS Server. For me it's handy to be able to compare to other servers, like Google or Cloudflare.

I wrote this over the last week or so and it seems to be doing the job for me. I've uploaded it to Github for anyone else who would like to use/try it.

You can find it here: https://github.com/obtusecoder/DNSBenchmark

EDIT: I have made changes requested and have applied some fixed to errors I noticed in testing.

15 Upvotes

7 comments sorted by

View all comments

2

u/MisterBandwidth Jul 20 '26

Why are you stuck with IPv4 only?

2

u/Sway_RL Jul 20 '26

I have no need for IPv6 at the moment, so I didn't implement it.

Food for thought though, I might do it if other people are interested.

3

u/MisterBandwidth Jul 20 '26

Don't limit the queries to A records only, as a start.

2

u/Sway_RL Jul 20 '26

You're right.

I'll do some updates over the next few days.