mirror of
				https://github.com/StackExchange/dnscontrol.git
				synced 2025-11-04 11:39:31 +08:00 
			
		
		
		
	* 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()
		
			
				
	
	
	
	
		
			832 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			832 B
		
	
	
	
	
	
	
	
| name | parameters | ||
|---|---|---|---|
| D_EXTEND | 
  | 
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 %}