mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 02:17:43 +08:00
caedb9a7a6
* Implement AutoDNS provider to manage existing zones * Moved AuditRecords() in to separate file to ease automatic updating * S1011 - Use a single append to concatenate two slices * Set list of available record types as returned by the system * Fixed style, clarify code and add some extra comments * Documented simple configuration and usage example of AutoDNS * Convert MX and SRV record properly from string to actual structs and back * Add support for integration tests of AutoDNS * Return error message from update request instead of invoking panic() * Skip AUTODNS in test for RFC 7505 (null MX) * Update providers/autodns/autoDnsProvider.go Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
737 B
737 B
name | title | layout | jsId |
---|---|---|---|
AutoDNS | AutoDNS (InternetX) | default | AUTODNS |
AutoDNS Provider
Configuration
In your credentials file, you must provide username, password and a context.
{% highlight json %} { "autodns": { "username": "autodns.service-account@example.com", "password": "[***]", "context": "33004" } } {% endhighlight %}
Usage
Example Javascript:
{% highlight js %} var REG_NONE = NewRegistrar('none', 'NONE'); var HETZNER = NewDnsProvider("autodns", "AUTODNS");
D("example.tld", REG_NONE, DnsProvider(AUTODNS), A("test","1.2.3.4") ); {%endhighlight%}