Adding upstream version 2.6.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
87b1cd2929
commit
dd7b5026ba
7 changed files with 66 additions and 16 deletions
10
contrib/ecs-gen/dnsperf-ecs-gen.py
Executable file
10
contrib/ecs-gen/dnsperf-ecs-gen.py
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import dns.edns
|
||||
import sys
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
opt = dns.edns.ECSOption.from_text(sys.argv[1])
|
||||
print("-e %d:%s" % (dns.edns.ECS, opt.to_wire().hex()))
|
||||
else:
|
||||
print("usage: dnsperf-ecs-gen.py <address/srclen[/scopelen]>")
|
Loading…
Add table
Add a link
Reference in a new issue