diff options
Diffstat (limited to 'tests/deckard/sets/knotd/master')
-rw-r--r-- | tests/deckard/sets/knotd/master/example.com.zone | 22 | ||||
-rw-r--r-- | tests/deckard/sets/knotd/master/iter_ns.rpl | 28 |
2 files changed, 50 insertions, 0 deletions
diff --git a/tests/deckard/sets/knotd/master/example.com.zone b/tests/deckard/sets/knotd/master/example.com.zone new file mode 100644 index 0000000..ee51895 --- /dev/null +++ b/tests/deckard/sets/knotd/master/example.com.zone @@ -0,0 +1,22 @@ +$ORIGIN example.com. +$TTL 3600 + +@ SOA dns1.example.com. hostmaster.example.com. ( + 2010111213 ; serial + 6h ; refresh + 1h ; retry + 1w ; expire + 1d ) ; minimum + + NS dns1 + NS dns2 + MX 10 mail + +dns1 A 192.0.2.1 + AAAA 2001:DB8::1 + +dns2 A 192.0.2.2 + AAAA 2001:DB8::2 + +mail A 192.0.2.3 + AAAA 2001:DB8::3 diff --git a/tests/deckard/sets/knotd/master/iter_ns.rpl b/tests/deckard/sets/knotd/master/iter_ns.rpl new file mode 100644 index 0000000..089dec1 --- /dev/null +++ b/tests/deckard/sets/knotd/master/iter_ns.rpl @@ -0,0 +1,28 @@ + stub-addr: 192.0.2.10 +CONFIG_END + +SCENARIO_BEGIN Simple knotd query. + +STEP 1 QUERY +ENTRY_BEGIN +REPLY RD +SECTION QUESTION +example.com IN NS +ENTRY_END + +STEP 2 CHECK_ANSWER +ENTRY_BEGIN +MATCH all +REPLY QR RD AA NOERROR +SECTION QUESTION +example.com. IN NS +SECTION ANSWER +example.com. 3600 IN NS dns1.example.com. +example.com. 3600 IN NS dns2.example.com. +SECTION ADDITIONAL +dns1.example.com. 3600 IN A 192.0.2.1 +dns1.example.com. 3600 IN AAAA 2001:DB8::1 +dns2.example.com. 3600 IN A 192.0.2.2 +dns2.example.com. 3600 IN AAAA 2001:DB8::2 +ENTRY_END + |