dnscontrol/docs/_providers/autodns.md

36 lines
737 B
Markdown
Raw Normal View History

---
name: AutoDNS
title: AutoDNS (InternetX)
layout: default
jsId: AUTODNS
---
# AutoDNS Provider
## Configuration
In your credentials file, you must provide [username, password and a context](https://help.internetx.com/display/APIXMLEN/Authentication#Authentication-AuthenticationviaCredentials(username/password/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%}