aboutsummaryrefslogtreecommitdiff
path: root/test/example_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-03-02 19:35:44 +0000
committerGravatar GitHub <noreply@github.com> 2017-03-02 19:35:44 +0000
commit6966bce653a1a866c2a8fc3f8b5bcccf123a046d (patch)
tree6e5e0090f19cdf33996579a494e24147e5c46df1 /test/example_test.go
parenta3f7788686a3833677b5c86da90d70604637d307 (diff)
downloadcoredns-6966bce653a1a866c2a8fc3f8b5bcccf123a046d.tar.gz
coredns-6966bce653a1a866c2a8fc3f8b5bcccf123a046d.tar.zst
coredns-6966bce653a1a866c2a8fc3f8b5bcccf123a046d.zip
Fix resolving CNAME with no proxy (#564)
This fixes a crash when we resolve (or try to) an external CNAME when no proxy is set. Add test as well.
Diffstat (limited to 'test/example_test.go')
-rw-r--r--test/example_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/example_test.go b/test/example_test.go
index 5b6df9dcc..e8f30e983 100644
--- a/test/example_test.go
+++ b/test/example_test.go
@@ -8,4 +8,5 @@ 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"
+cname.example.org. IN CNAME www.example.net.
`