dnscontrol/docs/_providers/powerdns.md
André Frimberger 8ba081f06a
POWERDNS: Fix documentation: config keys use camel case (#962)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2020-11-28 15:43:13 -05:00

1.1 KiB

name title layout jsId
PowerDNS PowerDNS Provider default POWERDNS

PowerDNS Provider

Configuration

In your credentials file, you must provide your API URL, API Key and Server ID.

In most cases the Server id is localhost

{% highlight json %} { "powerdns": { "apiUrl": "http://localhost", "apiKey": "your-key", "serverName": "localhost" } } {% endhighlight %}

Metadata

Following metadata are available:

{% highlight js %} { 'default_ns': [ 'a.example.com.', 'b.example.com.' ], 'dnssec_on_create': false } {% endhighlight %}

  • default_ns sets the nameserver which are used
  • dnssec_on_create specifies if DNSSEC should be enabled when creating zones

Usage

Example Javascript:

{% highlight js %} var REG_NONE = NewRegistrar('none', 'NONE') var POWERDNS = NewDnsProvider("powerdns", "POWERDNS");

D("example.tld", REG_NONE, DnsProvider(POWERDNS), A("test","1.2.3.4") ); {%endhighlight%}

Activation

See the PowerDNS documentation how the API can be enabled.