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
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
```
2022-03-25 20:22:59 +01:00
## Usage
2022-05-08 14:41:33 -04:00
An example `dnsconfig.js` configuration:
2022-03-25 20:22:59 +01:00
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
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
);
2022-10-27 22:17:19 +02:00
```