Return DNS no-error with empty answer if we have a matching name

but the query is for a record type we don't support.
This commit is contained in:
Bryan Boreham committed 2016-05-03 17:33:51 +01:00
1 parent be3b0aa976
commit 503546d2a9
2 files changed
+10 -5

No files matched your search

+2 -3
View File
@@ -7,9 +7,8 @@ start_suite "Negative DNS queries"
weave_on $HOST1 launch
start_container_with_dns $HOST1 --name c1
# unsupported query types, unknown names, and unknown domains should
# all trigger NXDOMAIN
assert_raises "exec_on $HOST1 c1 dig MX c1.weave.local | grep -q 'status: NXDOMAIN'"
# unsupported query types, unknown names, and unknown domains
assert_raises "exec_on $HOST1 c1 dig MX c1.weave.local | grep -q 'status: NOERROR'"
assert_raises "exec_on $HOST1 c1 dig A xx.weave.local | grep -q 'status: NXDOMAIN'"
assert_raises "exec_on $HOST1 c1 dig A xx.invalid | grep -q 'status: NXDOMAIN'"