cleandig host1.auth-zone.example.net. AAAA | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
cleandig host2.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
cleandig host3.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
-cleandig you-are.wild.example.net. TXT | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
+cleandig you-are.wild.auth-zone.example.net. TXT | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
Test 3 direct queries for data in an auth-zone. 2 records that are in-zone,
one that is a CNAME to a name inside another auth-zone and a final one that is a
CNAME to a record in a zone where the recursor is not authoritative for.
+
+Additionally, test auth-zone wildcards.
0 host3.auth-zone.example.net. IN CNAME 3600 host1.not-auth-zone.example.net.
Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
Reply to question for qname='host3.auth-zone.example.net.', qtype=A
-0 you-are.wild.example.net. IN TXT 3600 "Hi there!"
+0 you-are.wild.auth-zone.example.net. IN TXT 3600 "Hi there!"
Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
-Reply to question for qname='you-are.wild.example.net.', qtype=TXT
+Reply to question for qname='you-are.wild.auth-zone.example.net.', qtype=TXT
ns.answer-cname-in-local.example.net. 3600 IN A $PREFIX.22
not-auth-zone.example.net. 3600 IN NS ns.not-auth-zone.example.net.
ns.not-auth-zone.example.net. 3600 IN A $PREFIX.23
-*.wild.example.net. 3600 IN TXT "Hi there!"
EOF
mkdir $PREFIX.11
host2.auth-zone.example.net. 20 IN CNAME host1.another-auth-zone.example.net.
host3.auth-zone.example.net. 20 IN CNAME host1.not-auth-zone.example.net.
+*.wild.auth-zone.example.net. 3600 IN TXT "Hi there!"
EOF
cat > recursor-service/another-auth-zone.example.net.zone <<EOF