1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Julius Rickert 20dad35167 Replace Jekyll highlight tags with fenced code blocks (#1412)
* Replace Jekyll highlight tags with fenced code blocks

Replace Jekyll highlight tags with fenced code blocks.
Canonicalize javascript to js.
Correct highlighting languages.
Add highlighting to code blocks.
Remove leading $ from bash blocks.
Remove empty lines at start and end of code blocks.
Stripped trailing whitespace.

* Fix language of code highlighting
2022-02-17 12:22:31 -05:00

36 lines
516 B
Markdown

---
name: NS1
title: NS1 Provider
layout: default
jsId: NS1
---
# NS1 Provider
## Configuration
In your credentials json file you must provide your NS1 api key:
```json
{
"ns1":{
"api_token": "your-ns1-token"
}
}
```
## Metadata
This provider does not recognize any special metadata fields unique to NS1.
## Usage
Example Javascript:
```js
var REG_NONE = NewRegistrar('none', 'NONE')
var NS1 = NewDnsProvider("ns1", "NS1");
D("example.tld", REG_NONE, DnsProvider(NS1),
A("test","1.2.3.4")
);
```