summaryrefslogtreecommitdiff
path: root/testdata/fwd_error.rpl
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/fwd_error.rpl')
-rw-r--r--testdata/fwd_error.rpl27
1 files changed, 27 insertions, 0 deletions
diff --git a/testdata/fwd_error.rpl b/testdata/fwd_error.rpl
new file mode 100644
index 000000000000..238b1f58d03a
--- /dev/null
+++ b/testdata/fwd_error.rpl
@@ -0,0 +1,27 @@
+; config options go here.
+forward-zone: name: "." forward-addr: 216.0.0.1
+CONFIG_END
+SCENARIO_BEGIN Forwarder and an error happens on server query.
+STEP 1 QUERY
+ENTRY_BEGIN
+REPLY RD
+SECTION QUESTION
+www.example.com. IN A
+ENTRY_END
+; But the pending query fails due to error (say TCP failure or malloc or ...)
+; This is iterator/iterator.h OUTBOUND_MSG_RETRY number of errors.
+STEP 2 ERROR
+STEP 3 ERROR
+STEP 4 ERROR
+STEP 5 ERROR
+STEP 6 ERROR
+; returns servfail
+STEP 14 CHECK_ANSWER
+ENTRY_BEGIN
+MATCH opcode qname qtype
+SECTION QUESTION
+REPLY SERVFAIL QR RD RA
+MATCH all
+www.example.com. IN A
+ENTRY_END
+SCENARIO_END