2017-09-13 23:49:15 +08:00
|
|
|
---
|
|
|
|
name: NS1
|
2017-10-11 20:33:17 +08:00
|
|
|
title: NS1 Provider
|
2017-09-13 23:49:15 +08:00
|
|
|
layout: default
|
|
|
|
jsId: NS1
|
|
|
|
---
|
|
|
|
# NS1 Provider
|
|
|
|
|
|
|
|
NS1 provides a dns provider implementation for ns1 dns.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
In your providers config json file you must provide your ns1 api key:
|
|
|
|
|
|
|
|
{% highlight json %}
|
|
|
|
{
|
|
|
|
"ns1":{
|
|
|
|
"api_token": "your-ns1-token"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endhighlight %}
|
|
|
|
|
|
|
|
## Metadata
|
|
|
|
|
|
|
|
This provider does not recognize any special metadata fields unique to ns1.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Example javascript:
|
|
|
|
|
|
|
|
{% highlight js %}
|
2017-10-11 20:33:52 +08:00
|
|
|
var REG_NONE = NewRegistrar('none', 'NONE')
|
2017-09-13 23:49:15 +08:00
|
|
|
var NS1 = NewDnsProvider("ns1", "NS1");
|
|
|
|
|
2017-10-11 20:33:52 +08:00
|
|
|
D("example.tld", REG_NONE, DnsProvider(NS1),
|
2017-09-13 23:49:15 +08:00
|
|
|
A("test","1.2.3.4")
|
|
|
|
);
|
|
|
|
{% endhighlight %}
|
|
|
|
|