2018-09-04 07:57:11 -07:00
|
|
|
---
|
|
|
|
name: NAMESERVER_TTL
|
|
|
|
parameters:
|
|
|
|
- ttl
|
2023-01-12 16:59:42 -05:00
|
|
|
parameter_types:
|
|
|
|
ttl: Duration
|
|
|
|
target: string
|
|
|
|
modifiers...: RecordModifier[]
|
2018-09-04 07:57:11 -07:00
|
|
|
---
|
|
|
|
|
2023-01-20 13:56:20 +01:00
|
|
|
TTL sets the TTL on the domain apex NS RRs defined by [NAMESERVER](NAMESERVER.md).
|
2018-09-04 07:57:11 -07:00
|
|
|
|
2023-01-20 13:56:20 +01:00
|
|
|
The value can be an integer or a string. See [TTL](../record/TTL.md) for examples.
|
2018-09-04 07:57:11 -07:00
|
|
|
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2018-09-04 07:57:11 -07:00
|
|
|
D('example.com', REGISTRAR, DnsProvider('R53'),
|
|
|
|
NAMESERVER_TTL('2d'),
|
|
|
|
NAMESERVER('ns')
|
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|