2022-03-25 20:22:59 +01:00
---
name: AutoDNS
title: AutoDNS (InternetX)
layout: default
jsId: AUTODNS
---
# AutoDNS Provider
## Configuration
2022-05-08 14:41:33 -04:00
To use this provider, add an entry to `creds.json` with `TYPE` set to `AUTODNS` along with
[username, password and a context ](https://help.internetx.com/display/APIXMLEN/Authentication#Authentication-AuthenticationviaCredentials(username/password/context )).
Example:
2022-03-25 20:22:59 +01:00
{% highlight json %}
{
"autodns": {
2022-05-08 14:41:33 -04:00
"TYPE": "AUTODNS",
2022-03-25 20:22:59 +01:00
"username": "autodns.service-account@example .com",
"password": "[***]",
"context": "33004"
}
}
{% endhighlight %}
## Usage
2022-05-08 14:41:33 -04:00
An example `dnsconfig.js` configuration:
2022-03-25 20:22:59 +01:00
{% highlight js %}
2022-05-08 14:41:33 -04:00
var REG_NONE = NewRegistrar("none");
var DSP_AUTODNS = NewDnsProvider("autodns");
2022-03-25 20:22:59 +01:00
2022-05-08 14:41:33 -04:00
D("example.tld", REG_NONE, DnsProvider(DSP_AUTODNS),
A("test", "1.2.3.4")
2022-03-25 20:22:59 +01:00
);
{%endhighlight%}