Commit 86a59022 authored by xuweiwei's avatar xuweiwei Committed by GitHub

plugin/file: add TXT RR test case (#5079)

Signed-off-by: default avatarxuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
parent c121aaab
...@@ -132,6 +132,13 @@ var dnsTestCases = []test.Case{ ...@@ -132,6 +132,13 @@ var dnsTestCases = []test.Case{
Rcode: dns.RcodeServerFailure, Rcode: dns.RcodeServerFailure,
Ns: miekAuth, 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 ( const (
...@@ -236,4 +243,5 @@ dname IN DNAME x ...@@ -236,4 +243,5 @@ dname IN DNAME x
srv IN SRV 10 10 8080 a.miek.nl. srv IN SRV 10 10 8080 a.miek.nl.
mx IN MX 10 a.miek.nl. mx IN MX 10 a.miek.nl.
txt IN TXT "v=spf1 a mx ~all"
ext-cname IN CNAME example.com.` ext-cname IN CNAME example.com.`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment