add a regression test for duplicate NS output
check that an NS RRset with two servers is only printed once.
This commit is contained in:
@@ -1404,6 +1404,13 @@ if [ -x "$DELV" ] ; then
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "check NS output from delv +ns ($n)"
|
||||
delv_with_opts -i +ns +nortrace +nostrace +nomtrace +novtrace +hint=../common/root.hint ns example > delv.out.test$n || ret=1
|
||||
lines=$(awk '$1 == "example." && $4 == "NS" {print}' delv.out.test$n | wc -l)
|
||||
[ $lines -eq 2 ] || ret=1
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking delv +ns (no validation) ($n)"
|
||||
ret=0
|
||||
|
||||
Reference in New Issue
Block a user