github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/record-modifiers/TTL.md (about)

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