mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Add support for TXT records with multiple strings (BIND, ROUTE53) (#293)
* BIND: Support TXT records with multiple strings (#289) * ROUTE53: Add support for TXT records with multiple strings (#292)
This commit is contained in:
@ -11,9 +11,10 @@
|
||||
"type": "TXT",
|
||||
"name": "_dmarc",
|
||||
"target": "v=DMARC1\\; p=reject\\; sp=reject\\; pct=100\\; rua=mailto:xx...@yyyy.com\\; ruf=mailto:xx...@yyyy.com\\; fo=1",
|
||||
"ttl": 300
|
||||
"ttl": 300,
|
||||
"txtstrings":["v=DMARC1\\; p=reject\\; sp=reject\\; pct=100\\; rua=mailto:xx...@yyyy.com\\; ruf=mailto:xx...@yyyy.com\\; fo=1"]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
6
pkg/js/parse_tests/017-txt.js
Normal file
6
pkg/js/parse_tests/017-txt.js
Normal file
@ -0,0 +1,6 @@
|
||||
D("foo.com","none"
|
||||
, TXT("@","simple")
|
||||
, TXT("@",["one"])
|
||||
, TXT("@",["bonie", "clyde"])
|
||||
, TXT("@",["straw", "wood", "brick"])
|
||||
);
|
37
pkg/js/parse_tests/017-txt.json
Normal file
37
pkg/js/parse_tests/017-txt.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "TXT",
|
||||
"name": "@",
|
||||
"target": "simple",
|
||||
"txtstrings": [ "simple" ]
|
||||
},
|
||||
{
|
||||
"type": "TXT",
|
||||
"name": "@",
|
||||
"target": "one",
|
||||
"txtstrings": [ "one" ]
|
||||
},
|
||||
{
|
||||
"type": "TXT",
|
||||
"name": "@",
|
||||
"target": "bonie",
|
||||
"txtstrings": [ "bonie", "clyde" ]
|
||||
},
|
||||
{
|
||||
"type": "TXT",
|
||||
"name": "@",
|
||||
"target": "straw",
|
||||
"txtstrings": [ "straw", "wood", "brick" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user