]> granicus.if.org Git - pdns/commitdiff
add tools to compare pdns output to that of other servers
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 18 Jan 2011 08:37:13 +0000 (08:37 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 18 Jan 2011 08:37:13 +0000 (08:37 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1891 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnssec-scripts/gencmpquestions [new file with mode: 0755]
pdns/dnssec-scripts/gendiff [new file with mode: 0755]

diff --git a/pdns/dnssec-scripts/gencmpquestions b/pdns/dnssec-scripts/gencmpquestions
new file mode 100755 (executable)
index 0000000..aaae2f4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+PDNSPORT=5300
+CMPPORT=53
+
+awk '{print $1, $4}' $1  | egrep -v 'RRSIG|NSEC3' | sort -u |  \
+while read a b; do dig $a $b @127.0.0.1 -p $PDNSPORT +dnssec +noauth | grep \
+-v ^\; > output.$a-$b.pdns ;  dig +dnssec $a $b @127.0.0.1 -p $CMPPORT +noauth | \
+grep -v ^\; > output.$a-$b.nsd; done
diff --git a/pdns/dnssec-scripts/gendiff b/pdns/dnssec-scripts/gendiff
new file mode 100755 (executable)
index 0000000..8fab684
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+for a in output.*.pdns
+do 
+       echo $a 
+       diff -uBb $a $(echo $a | sed 's/pdns/nsd/g')
+done
\ No newline at end of file