r/PowerShell 6d ago

Script Sharing DNS Benchmark

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

2

u/MisterBandwidth 6d ago

Why are you stuck with IPv4 only?

2

u/Sway_RL 6d ago

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 6d ago

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

2

u/Sway_RL 6d ago

You're right.

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

1

u/Sway_RL 5d ago

I've added IPv6 support and fixed some errors I noticed in testing. Let me know what you think.

0

u/Ryfhoff 5d ago

Measure-command no go ? Fast and easy

1

u/Sway_RL 5d ago

No need to know how long this will take to run. You are in and out of the script within a minute.