mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-27 00:53:03 +08:00
parent
3488c82093
commit
c13d83887c
1 changed files with 8 additions and 2 deletions
|
@ -26,10 +26,16 @@ D('example.com', REG, DnsProvider('GCLOUD'),
|
|||
|
||||
{% endhighlight %}
|
||||
|
||||
## Set a specific TTL for a record
|
||||
## Set TTLs
|
||||
|
||||
{% highlight javascript %}
|
||||
A('one', '1.2.3.4', TTL(400)),
|
||||
|
||||
D('example.com', registrar,
|
||||
DefaultTTL(400), // Default for a domain
|
||||
A('@', '1.2.3.4', TTL(400)), // individual record
|
||||
{'ns_ttl': '400'} // On domain apex NS RRs
|
||||
);
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
## Variables for common IP Addresses
|
||||
|
|
Loading…
Reference in a new issue