mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-15 12:45:14 +08:00
31bdb65720
- Fixed indentation - Use same naming scheme for all examples (i.e. all caps for provider, REG prefix for registrar) - Use REG_NONE as registrar when provider does not provide it - Use example.tld for example domain - Use 1.2.3.1/24 IP range for examples - A few spelling fixes
776 B
776 B
name | title | layout | jsId |
---|---|---|---|
Gandi | Gandi Provider | default | GANDI |
Gandi Provider
Gandi provides a DnsProvider but not a Registrar.
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 Gandi.
Usage
Example javascript:
{% highlight js %} var GANDI = NewDnsProvider("gandi", "GANDI");
D("example.tld", REG_GANDI, DnsProvider(GANDI), A("test","1.2.3.4") ); {% endhighlight %}
New domains
If a domain does not exist in your Gandi account, DNSControl will not automatically add it. You'll need to do that via the control panel manually.