github.com/hexonet/dnscontrol@v0.2.8/docs/_functions/record/TTL.md (about)

     1  ---
     2  name: TTL
     3  parameters:
     4    - ttl
     5  ---
     6  
     7  TTL sets the TTL for a single record only. This will take precedence
     8  over the domain's [DefaultTTL](#DefaultTTL) if supplied.
     9  
    10  The value can be:
    11  
    12    * An integer (number of seconds). Example: `600`
    13    * A string: Integer with single-letter unit: Example: `5m`
    14    * The unit denotes:
    15      * s (seconds)
    16      * m (minutes)
    17      * h (hours)
    18      * d (days)
    19      * w (weeks)
    20      * n (nonths) (30 days in a nonth)
    21      * y (years) (If you set a TTL to a year, we assume you also do crossword puzzles in pen. Show off!)
    22      * If no unit is specified, the default is seconds.
    23    * We highly recommend using units instead of the number of seconds. Would your coworkers understand your intention better if you wrote `14400` or `'4h'`?
    24  
    25  {% include startExample.html %}
    26  {% highlight js %}
    27  
    28  D('example.com', REGISTRAR, DnsProvider('R53'),
    29    DefaultTTL(2000),
    30    A('@','1.2.3.4'), // uses default
    31    A('foo', '2.3.4.5', TTL(500)), // overrides default
    32    A('demo1', '3.4.5.11', TTL('5d')),  // 5 days
    33    A('demo2', '3.4.5.12', TTL('5w')),  // 5 weeks
    34  );
    35  {%endhighlight%}
    36  {% include endExample.html %}