plugin/file: add TXT RR test case (#5079)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
c121aaab34
commit
86a5902209
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
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.`
|
||||||
|
|
Loading…
Add table
Reference in a new issue