github.com/hexonet/dnscontrol@v0.2.8/docs/_functions/domain/TXT.md (about)

     1  ---
     2  name: TXT
     3  parameters:
     4    - name
     5    - contents
     6    - modifiers...
     7  ---
     8  
     9  TXT adds an TXT record To a domain. The name should be the relative
    10  label for the record. Use `@` for the domain apex.
    11  
    12  The contents is either a single or multiple strings.  To
    13  specify multiple strings, include them in an array.
    14  
    15  TXT records with multiple strings are only supported by some
    16  providers. DNSControl will produce a validation error if the
    17  provider does not support multiple strings.
    18  
    19  Each string is a JavaScript string (quoted using single or double
    20  quotes).  The (somewhat complex) quoting rules of the DNS protocol
    21  will be done for you.
    22  
    23  Modifers can be any number of [record modifiers](#record-modifiers) or json objects, which will be merged into the record's metadata.
    24  
    25  {% include startExample.html %}
    26  {% highlight js %}
    27  
    28  D("example.com", REGISTRAR, ....,
    29    TXT('@', '598611146-3338560'),
    30    TXT('listserve', 'google-site-verification=12345'),
    31    TXT('multiple', ['one', 'two', 'three']),  // Multiple strings
    32    TXT('quoted', 'any "quotes" and escapes? ugh; no worries!'),
    33    TXT('_domainkey', 't=y; o=-;') // Escapes are done for you automatically.
    34  );
    35  
    36  {%endhighlight%}
    37  {% include endExample.html %}