diff options
author | 2016-10-08 15:22:31 +0100 | |
---|---|---|
committer | 2016-10-08 15:22:31 +0100 | |
commit | e43384b501e211364cd167c87b4759e60add9776 (patch) | |
tree | 82811da3bd953b6b0efed7b97dca980cf085699f /test/example_test.go | |
parent | b44d82839facb4911f03f6a8e6003529a01c67bf (diff) | |
download | coredns-e43384b501e211364cd167c87b4759e60add9776.tar.gz coredns-e43384b501e211364cd167c87b4759e60add9776.tar.zst coredns-e43384b501e211364cd167c87b4759e60add9776.zip |
middleware/file: proper support for wildcard (#323)
Add support for wildcard records, while taking care of wildcard-cnames
and DNSSEC. Add enough tests to check all the corner cases.
Diffstat (limited to 'test/example_test.go')
-rw-r--r-- | test/example_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/example_test.go b/test/example_test.go new file mode 100644 index 000000000..5b6df9dcc --- /dev/null +++ b/test/example_test.go @@ -0,0 +1,11 @@ +package test + +const exampleOrg = `; example.org test file +example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600 +example.org. IN NS b.iana-servers.net. +example.org. IN NS a.iana-servers.net. +example.org. IN A 127.0.0.1 +example.org. IN A 127.0.0.2 +*.w.example.org. IN TXT "Wildcard" +a.b.c.w.example.org. IN TXT "Not a wildcard" +` |