github.com/philhug/dnscontrol@v0.2.4-0.20180625181521-921fa9849001/docs/_functions/global/DEFAULTS.md (about) 1 --- 2 name: DEFAULTS 3 parameters: 4 - modifiers... 5 --- 6 7 `DEFAULTS` allows you to declare a set of default arguments to apply to all subsequent domains. Subsequent calls to [D](#D) will have these 8 arguments passed as if they were the first modifiers in the argument list. 9 10 {% include startExample.html %} 11 {% highlight js %} 12 var COMMON = NewDnsProvider("foo","BIND"); 13 // we want to create backup zone files for all domains, but not actually register them. 14 // also create a default TTL 15 DEFAULTS( DnsProvider(COMMON,0), DefaultTTL(1000)); 16 17 D("example.com", REGISTRAR, DnsProvider("R53"), A("@","1.2.3.4")); // this domain will have the defaults set. 18 19 // clear defaults 20 DEFAULTS(); 21 D("example2.com", REGISTRAR, DnsProvider("R53"), A("@","1.2.3.4")); // this domain will not have the previous defaults. 22 {%endhighlight%} 23 {% include endExample.html %}