2020-01-27 21:25:20 +08:00
|
|
|
DNSControl's Internet.bs provider supports being a Registrar. Support for being a DNS Provider is not included, but could be added in the future.
|
|
|
|
|
|
|
|
## Configuration
|
2022-05-09 02:41:33 +08:00
|
|
|
|
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `INTERNETBS`
|
|
|
|
along with an API key and account password.
|
|
|
|
|
|
|
|
Example:
|
2020-01-27 21:25:20 +08:00
|
|
|
|
2022-02-18 01:22:31 +08:00
|
|
|
```json
|
2020-01-27 21:25:20 +08:00
|
|
|
{
|
|
|
|
"internetbs": {
|
2022-05-09 02:41:33 +08:00
|
|
|
"TYPE": "INTERNETBS",
|
2020-01-27 21:25:20 +08:00
|
|
|
"api-key": "your-api-key",
|
|
|
|
"password": "account-password"
|
|
|
|
}
|
|
|
|
}
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2020-01-27 21:25:20 +08:00
|
|
|
|
|
|
|
## Metadata
|
|
|
|
This provider does not recognize any special metadata fields unique to Internet.bs.
|
|
|
|
|
|
|
|
## Usage
|
2022-05-09 02:41:33 +08:00
|
|
|
An example `dnsconfig.js` configuration:
|
2020-01-27 21:25:20 +08:00
|
|
|
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2022-05-09 02:41:33 +08:00
|
|
|
var REG_INTERNETBS = NewRegistrar("internetbs");
|
2020-01-27 21:25:20 +08:00
|
|
|
|
2020-01-28 20:44:52 +08:00
|
|
|
D("example.com", REG_INTERNETBS,
|
2021-01-06 10:18:07 +08:00
|
|
|
NAMESERVER("ns1.example.com."),
|
|
|
|
NAMESERVER("ns2.example.com."),
|
2020-01-27 21:25:20 +08:00
|
|
|
);
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2020-01-27 21:25:20 +08:00
|
|
|
|
|
|
|
## Activation
|
|
|
|
|
2021-01-06 10:18:07 +08:00
|
|
|
Pay attention, you need to define white list of IP for API. But you always can change it on `My Profile > Reseller Settings`
|