2022-03-25 20:22:59 +01:00
## 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
2023-03-02 22:17:27 +01:00
{% code title="creds.json" %}
2022-10-27 22:17:19 +02:00
```json
2022-03-25 20:22:59 +01:00
{
"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"
}
}
2022-10-27 22:17:19 +02:00
```
2023-03-02 22:17:27 +01:00
{% endcode %}
2022-03-25 20:22:59 +01:00
## Usage
2023-03-11 14:42:01 +01:00
An example configuration:
2022-03-25 20:22:59 +01:00
2023-03-11 14:42:01 +01:00
{% code title="dnsconfig.js" %}
2023-01-20 13:56:20 +01:00
```javascript
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
2023-06-17 14:58:17 +02:00
D("example.com", REG_NONE, DnsProvider(DSP_AUTODNS),
2022-05-08 14:41:33 -04:00
A("test", "1.2.3.4")
2022-03-25 20:22:59 +01:00
);
2022-10-27 22:17:19 +02:00
```
2023-03-11 14:42:01 +01:00
{% endcode %}