2022-03-26 03:22:59 +08:00
## Configuration
2022-05-09 02:41:33 +08: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-26 03:22:59 +08:00
2023-03-03 05:17:27 +08:00
{% code title="creds.json" %}
2022-10-28 04:17:19 +08:00
```json
2022-03-26 03:22:59 +08:00
{
"autodns": {
2022-05-09 02:41:33 +08:00
"TYPE": "AUTODNS",
2022-03-26 03:22:59 +08:00
"username": "autodns.service-account@example.com",
"password": "[***]",
"context": "33004"
}
}
2022-10-28 04:17:19 +08:00
```
2023-03-03 05:17:27 +08:00
{% endcode %}
2022-03-26 03:22:59 +08:00
## Usage
2022-05-09 02:41:33 +08:00
An example `dnsconfig.js` configuration:
2022-03-26 03:22:59 +08:00
2023-01-20 20:56:20 +08:00
```javascript
2022-05-09 02:41:33 +08:00
var REG_NONE = NewRegistrar("none");
var DSP_AUTODNS = NewDnsProvider("autodns");
2022-03-26 03:22:59 +08:00
2022-05-09 02:41:33 +08:00
D("example.tld", REG_NONE, DnsProvider(DSP_AUTODNS),
A("test", "1.2.3.4")
2022-03-26 03:22:59 +08:00
);
2022-10-28 04:17:19 +08:00
```