NS RR (apex) TTL example (#107)

* examples.md: more TTL examples
This commit is contained in:
eliheady 2017-04-28 14:17:44 -04:00 committed by Tom Limoncelli
parent 3488c82093
commit c13d83887c

View file

@ -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