2017-08-16 01:46:31 +08:00
|
|
|
---
|
|
|
|
name: TXT
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- contents
|
|
|
|
- modifiers...
|
|
|
|
---
|
|
|
|
|
|
|
|
TXT adds an TXT record To a domain. The name should be the relative
|
|
|
|
label for the record. Use `@` for the domain apex.
|
|
|
|
|
2018-01-05 08:19:35 +08:00
|
|
|
The contents is either a single or multiple strings. To
|
|
|
|
specify multiple strings, include them in an array.
|
2017-08-16 01:46:31 +08:00
|
|
|
|
2018-01-05 08:19:35 +08:00
|
|
|
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
|
2017-08-16 01:46:31 +08:00
|
|
|
quotes). The (somewhat complex) quoting rules of the DNS protocol
|
|
|
|
will be done for you.
|
|
|
|
|
2019-05-12 09:32:52 +08:00
|
|
|
Modifiers can be any number of [record modifiers](#record-modifiers) or json objects, which will be merged into the record's metadata.
|
2017-08-16 01:46:31 +08:00
|
|
|
|
|
|
|
{% include startExample.html %}
|
|
|
|
{% highlight js %}
|
|
|
|
|
|
|
|
D("example.com", REGISTRAR, ....,
|
|
|
|
TXT('@', '598611146-3338560'),
|
|
|
|
TXT('listserve', 'google-site-verification=12345'),
|
2018-01-05 08:19:35 +08:00
|
|
|
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.
|
2017-08-16 01:46:31 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
{%endhighlight%}
|
|
|
|
{% include endExample.html %}
|