mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
ffb2ee7673
* Clarify what "apiuser" is in Cloudflare docs Confusingly it is the email address associated with the account, not the username. * Remove Gandi registrar from docs Because it doesn't actually exist.
973 B
973 B
name | layout | jsId |
---|---|---|
Cloudflare | default | CLOUDFLAREAPI |
Cloudflare Provider
Configuration
In your providers config json file you must provide your cloudflare.com api username and access token:
{% highlight json %} { "cloudflare.com":{ "apikey": "your-cloudflare-api-key", "apiuser": "your-cloudflare-email-address" } } {% endhighlight %}
Metadata
Record level metadata availible:
- cloudflare_proxy ("on", "off", or "full")
Domain level metadata availible:
- cloudflare_proxy_default ("on", "off", or "full")
Provider level metadata availible:
- ip_conversions
Usage
Example javascript:
{% highlight js %} var REG_NAMECOM = NewRegistrar("name.com","NAMEDOTCOM"); var CFLARE = NewDnsProvider("cloudflare.com","CLOUDFLAREAPI");
D("example.tld", REG_NAMECOM, DnsProvider(CFLARE), A("test","1.2.3.4") ); {%endhighlight%}
Activation
DNSControl depends on a Cloudflare Global API Key that's available under "My Settings".