aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar xuweiwei <xuweiwei_yewu@cmss.chinamobile.com> 2022-02-18 02:58:18 +0800
committerGravatar GitHub <noreply@github.com> 2022-02-17 13:58:18 -0500
commit86a5902209a83a1cbb054780e9c9894406934e5c (patch)
treed036caa52f1a145009dd6120fe0613bcc8bedd59 /plugin
parentc121aaab344545487420cfb8192841eb13f096d7 (diff)
downloadcoredns-86a5902209a83a1cbb054780e9c9894406934e5c.tar.gz
coredns-86a5902209a83a1cbb054780e9c9894406934e5c.tar.zst
coredns-86a5902209a83a1cbb054780e9c9894406934e5c.zip
plugin/file: add TXT RR test case (#5079)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/file/lookup_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/file/lookup_test.go b/plugin/file/lookup_test.go
index 5d024b88f..02580d227 100644
--- a/plugin/file/lookup_test.go
+++ b/plugin/file/lookup_test.go
@@ -132,6 +132,13 @@ var dnsTestCases = []test.Case{
Rcode: dns.RcodeServerFailure,
Ns: miekAuth,
},
+ {
+ Qname: "txt.miek.nl.", Qtype: dns.TypeTXT,
+ Answer: []dns.RR{
+ test.TXT(`txt.miek.nl. 1800 IN TXT "v=spf1 a mx ~all"`),
+ },
+ Ns: miekAuth,
+ },
}
const (
@@ -236,4 +243,5 @@ dname IN DNAME x
srv IN SRV 10 10 8080 a.miek.nl.
mx IN MX 10 a.miek.nl.
+txt IN TXT "v=spf1 a mx ~all"
ext-cname IN CNAME example.com.`