dnscontrol/docs/_functions/global/D_EXTEND.md
Patrik Kernstock d2d210a5af
New features: DU() and getConfiguredDomains() to assist modifying domains (#800)
* Added DU() and getConfiguredDomains()

* Added docs for both new functions

* Added a space between option and its value

* Renamed "DU" to "D_EXTEND", adjusted docs

* Fixed: Changed old DU() calls to D_EXTEND()
2020-08-04 09:43:02 -04:00

832 B

name parameters
D_EXTEND
name
modifiers...

D_EXTEND adds records (and metadata) to a domain. The domain must have previously been defined by D(). D_EXTEND() behaves the same as D() in all other ways: The first argument is the domain name. See the documentation of D for further details.

Example: {% include startExample.html %} {% highlight js %} D('domain.tld', REG, DnsProvider(DNS), A('@', "127.0.0.1") ) D_EXTEND('domain.tld', A('@', "127.0.0.2") ) {%endhighlight%}

This will end up in following modifications:

******************** Domain: domain.tld
----- Getting nameservers from: registrar
----- DNS Provider: registrar...3 corrections
#1: CREATE A domain.tld 127.0.0.1 ttl=43200
#2: CREATE A domain.tld 127.0.0.2 ttl=43200
#3: REFRESH zone domain.tld

{% include endExample.html %}