mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
533eabedf5
* Update docs
1.2 KiB
1.2 KiB
name | title | layout | jsId |
---|---|---|---|
PowerDNS | PowerDNS Provider | default | POWERDNS |
PowerDNS Provider
Configuration
To use this provider, add an entry to creds.json
with TYPE
set to POWERDNS
along with your API URL, API Key and Server ID.
In most cases the Server id is localhost
.
Example:
{
"powerdns": {
"TYPE": "POWERDNS",
"apiKey": "your-key",
"apiUrl": "http://localhost",
"serverName": "localhost"
}
}
Metadata
Following metadata are available:
{
'default_ns': [
'a.example.com.',
'b.example.com.'
],
'dnssec_on_create': false
}
default_ns
sets the nameserver which are useddnssec_on_create
specifies if DNSSEC should be enabled when creating zones
Usage
An example dnsconfig.js
configuration:
var REG_NONE = NewRegistrar("none");
var DSP_POWERDNS = NewDnsProvider("powerdns");
D("example.tld", REG_NONE, DnsProvider(DSP_POWERDNS),
A("test", "1.2.3.4")
);
Activation
See the PowerDNS documentation how the API can be enabled.