mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 17:26:10 +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 %}
|
{% endhighlight %}
|
||||||
|
|
||||||
## Set a specific TTL for a record
|
## Set TTLs
|
||||||
|
|
||||||
{% highlight javascript %}
|
{% 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 %}
|
{% endhighlight %}
|
||||||
|
|
||||||
## Variables for common IP Addresses
|
## Variables for common IP Addresses
|
||||||
|
|
Loading…
Reference in a new issue