aboutsummaryrefslogtreecommitdiff
path: root/testdata/edns_cache.tdir
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/edns_cache.tdir')
-rw-r--r--testdata/edns_cache.tdir/edns_cache.conf3
-rw-r--r--testdata/edns_cache.tdir/edns_cache.stub111
-rw-r--r--testdata/edns_cache.tdir/edns_cache.stub26
-rw-r--r--testdata/edns_cache.tdir/edns_cache.test4
4 files changed, 5 insertions, 19 deletions
diff --git a/testdata/edns_cache.tdir/edns_cache.conf b/testdata/edns_cache.tdir/edns_cache.conf
index 101b9751ffc6..baeee5f54f2c 100644
--- a/testdata/edns_cache.tdir/edns_cache.conf
+++ b/testdata/edns_cache.tdir/edns_cache.conf
@@ -12,9 +12,6 @@ server:
stub-zone:
name: "example.net"
stub-addr: "127.0.0.1@@STUB2_PORT@"
-stub-zone:
- name: "example.com"
- stub-addr: "127.0.0.1@@STUB2_PORT@"
# a k a root hints
stub-zone:
name: "."
diff --git a/testdata/edns_cache.tdir/edns_cache.stub1 b/testdata/edns_cache.tdir/edns_cache.stub1
index 23653c3b3d53..2cce1bd656ad 100644
--- a/testdata/edns_cache.tdir/edns_cache.stub1
+++ b/testdata/edns_cache.tdir/edns_cache.stub1
@@ -17,17 +17,6 @@ SECTION ADDITIONAL
root.server. IN A 127.0.0.1
ENTRY_END
-; referral to example.com
-ENTRY_BEGIN
-MATCH opcode subdomain
-REPLY QR NOERROR
-ADJUST copy_id copy_query
-SECTION QUESTION
-example.com. IN A
-SECTION AUTHORITY
-example.com. IN NS netdns.example.net.
-ENTRY_END
-
; referral to example.net
ENTRY_BEGIN
MATCH opcode subdomain
diff --git a/testdata/edns_cache.tdir/edns_cache.stub2 b/testdata/edns_cache.tdir/edns_cache.stub2
index f70eb98e7456..549560aa0f4c 100644
--- a/testdata/edns_cache.tdir/edns_cache.stub2
+++ b/testdata/edns_cache.tdir/edns_cache.stub2
@@ -1,5 +1,5 @@
; nameserver test file
-$ORIGIN example.com.
+$ORIGIN example.net.
$TTL 3600
ENTRY_BEGIN
@@ -7,9 +7,9 @@ MATCH opcode qtype qname noedns
REPLY QR AA NOERROR
ADJUST copy_id
SECTION QUESTION
-www.example.com. IN A
+www.example.net. IN A
SECTION ANSWER
-www.example.com. IN A 10.20.30.40
+www.example.net. IN A 10.20.30.40
ENTRY_END
ENTRY_BEGIN
diff --git a/testdata/edns_cache.tdir/edns_cache.test b/testdata/edns_cache.tdir/edns_cache.test
index 53931ded2eb7..d154d5277eac 100644
--- a/testdata/edns_cache.tdir/edns_cache.test
+++ b/testdata/edns_cache.tdir/edns_cache.test
@@ -11,8 +11,8 @@ PRE="../.."
# do the test
echo "> dig netdns.example.net."
dig @::1 -p $UNBOUND_PORT netdns.example.net. | tee outfile
-echo "> dig www.example.com."
-dig @::1 -p $UNBOUND_PORT www.example.com. | tee outfile
+echo "> dig www.example.net."
+dig @::1 -p $UNBOUND_PORT www.example.net. | tee outfile
echo "> cat stub1.log"
cat stub1.log
echo "> cat stub2.log"