2017-03-28 06:03:01 +08:00
|
|
|
---
|
|
|
|
name: Gandi
|
|
|
|
layout: default
|
|
|
|
jsId: GANDI
|
|
|
|
---
|
|
|
|
# Gandi Provider
|
|
|
|
|
2017-04-20 00:41:12 +08:00
|
|
|
Gandi provides both a dns provider implementation.
|
2017-03-28 06:03:01 +08:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
In your providers config json file you must provide your Gandi.net api key:
|
|
|
|
|
|
|
|
{% highlight json %}
|
|
|
|
{
|
|
|
|
"gandi":{
|
|
|
|
"apikey": "your-gandi-key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endhighlight %}
|
|
|
|
|
|
|
|
## Metadata
|
|
|
|
|
|
|
|
This provider does not recognize any special metadata fields unique to DNSimple.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Example javascript:
|
|
|
|
|
|
|
|
{% highlight js %}
|
2017-04-20 00:41:12 +08:00
|
|
|
var REG_NAMECOM = NewRegistrar("name.com","NAMEDOTCOM");
|
2017-03-28 06:03:01 +08:00
|
|
|
var GANDI = NewDnsProvider("gandi", "GANDI");
|
|
|
|
|
2017-04-20 00:41:12 +08:00
|
|
|
D("example.tld", REG_NAMECOM, DnsProvider(GANDI),
|
2017-03-28 06:03:01 +08:00
|
|
|
A("test","1.2.3.4")
|
|
|
|
);
|
|
|
|
{% endhighlight %}
|