Tantalor93 / dnspyre

CLI tool for a high QPS DNS benchmark
https://tantalor93.github.io/dnspyre/
MIT License
107 stars 10 forks source link

Adding ECS support, like dig's `+subnet=x.x.x.x/yy` option #253

Open PenelopeFudd opened 4 months ago

PenelopeFudd commented 4 months ago

Describe the feature I'm glad to see that dnspyre has an --ednsopt option that lets you add arbitrary EDNS options, like Client Subnet (08). Could you also add an option like --subnet=x.x.x.x/yy or --ecs=x.x.x.x/yy to make it a little easier? Also, is there a way to specify a list of subnets to send on different queries? Aaaand can it do IPv6 too?

Why do you need this feature We're performance testing a version of PowerDNS authoritative server that's ECS-aware, and typing --ednsopt="08:00011600cc0fdc" instead of --subnet=204.15.220.0/22 is a bit tedious. :-)

PenelopeFudd commented 4 months ago

Adding ECS:1.2.3.0/24 to the end of each line of the input file would be ideal. And if the request log could show the ECS value and the result, that'd help. I was looking at the Zdns program, but it doesn't have an obvious way to specify ECS data.