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:
@ -9,10 +9,14 @@ parameters:
|
||||
TXT adds an TXT record To a domain. The name should be the relative
|
||||
label for the record. Use `@` for the domain apex.
|
||||
|
||||
The contents is a single string. While DNS permits multiple
|
||||
strings in TXT records, that is not supported at this time.
|
||||
The contents is either a single or multiple strings. To
|
||||
specify multiple strings, include them in an array.
|
||||
|
||||
The string is a JavaScript string (quoted using single or double
|
||||
TXT records with multiple strings are only supported by some
|
||||
providers. DNSControl will produce a validation error if the
|
||||
provider does not support multiple strings.
|
||||
|
||||
Each string is a JavaScript string (quoted using single or double
|
||||
quotes). The (somewhat complex) quoting rules of the DNS protocol
|
||||
will be done for you.
|
||||
|
||||
@ -24,6 +28,9 @@ Modifers can be any number of [record modifiers](#record-modifiers) or json obje
|
||||
D("example.com", REGISTRAR, ....,
|
||||
TXT('@', '598611146-3338560'),
|
||||
TXT('listserve', 'google-site-verification=12345'),
|
||||
TXT('multiple', ['one', 'two', 'three']), // Multiple strings
|
||||
TXT('quoted', 'any "quotes" and escapes? ugh; no worries!'),
|
||||
TXT('_domainkey', 't=y; o=-;') // Escapes are done for you automatically.
|
||||
);
|
||||
|
||||
{%endhighlight%}
|
||||
|
Reference in New Issue
Block a user