mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Update DefaultTTL.md (#2133)
This commit is contained in:
@ -6,8 +6,11 @@ parameter_types:
|
||||
ttl: Duration
|
||||
---
|
||||
|
||||
DefaultTTL sets the TTL for all records in a domain that do not explicitly set one with [TTL](../record/TTL.md). If neither `DefaultTTL` or `TTL` exist for a record,
|
||||
it will use the DNSControl global default of 300 seconds.
|
||||
DefaultTTL sets the TTL for all subsequent records following it in a domain that do not explicitly set one with [`TTL`](../record/TTL.md). If neither `DefaultTTL` or `TTL` exist for a record,
|
||||
the record will inherit the DNSControl global internal default of 300 seconds. See also [`DEFAULTS`](../global/DEFAULTS.md) to override the internal defaults.
|
||||
|
||||
NS records are currently a special case, and do not inherit from `DefaultTTL`. See [`NAMESERVER_TTL`](../domain/NAMESERVER_TTL.md) to set a default TTL for all NS records.
|
||||
|
||||
|
||||
```javascript
|
||||
D('example.com', REGISTRAR, DnsProvider('R53'),
|
||||
@ -17,5 +20,5 @@ D('example.com', REGISTRAR, DnsProvider('R53'),
|
||||
);
|
||||
```
|
||||
|
||||
The DefaultTTL duration is the same format as [TTL](../record/TTL.md), an integer number of seconds
|
||||
The DefaultTTL duration is the same format as [`TTL`](../record/TTL.md), an integer number of seconds
|
||||
or a string with a unit such as `'4d'`.
|
||||
|
Reference in New Issue
Block a user