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

     1  ---
     2  name: DefaultTTL
     3  parameters:
     4    - ttl
     5  ---
     6  
     7  DefaultTTL sets the TTL for all records in a domain that do not explicitly set one with [TTL](#TTL). If neither `DefaultTTl` or `TTL` exist for a record,
     8  it will use the DNSControl global default of 300 seconds.
     9  
    10  {% include startExample.html %}
    11  {% highlight js %}
    12  
    13  D('example.com', REGISTRAR, DnsProvider('R53'),
    14    DefaultTTL("4h"),
    15    A('@','1.2.3.4'), // uses default
    16    A('foo', '2.3.4.5', TTL(600)) // overrides default
    17  );
    18  {%endhighlight%}
    19  
    20  The DefaultTTL duration is the same format as [TTL](#TTL), an integer number of seconds
    21  or a string with a unit such as `'4d'`.
    22  
    23  {% include endExample.html %}