mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
DOCS: [GitBook] Added code blocks syntax for dnsconfig.js (#2137)
This commit is contained in:
committed by
GitHub
parent
0bf851ec06
commit
4ad56417c0
@@ -22,6 +22,7 @@ Example:
|
||||
## Metadata
|
||||
Following metadata are available:
|
||||
|
||||
{% code title="dnsconfig.js" %}
|
||||
```javascript
|
||||
{
|
||||
'default_ns': [
|
||||
@@ -31,13 +32,15 @@ Following metadata are available:
|
||||
'dnssec_on_create': false
|
||||
}
|
||||
```
|
||||
{% endcode %}
|
||||
|
||||
- `default_ns` sets the nameserver which are used
|
||||
- `dnssec_on_create` specifies if DNSSEC should be enabled when creating zones
|
||||
|
||||
## Usage
|
||||
An example `dnsconfig.js` configuration:
|
||||
An example configuration:
|
||||
|
||||
{% code title="dnsconfig.js" %}
|
||||
```javascript
|
||||
var REG_NONE = NewRegistrar("none");
|
||||
var DSP_POWERDNS = NewDnsProvider("powerdns");
|
||||
@@ -46,6 +49,7 @@ D("example.tld", REG_NONE, DnsProvider(DSP_POWERDNS),
|
||||
A("test", "1.2.3.4")
|
||||
);
|
||||
```
|
||||
{% endcode %}
|
||||
|
||||
## Activation
|
||||
See the [PowerDNS documentation](https://doc.powerdns.com/authoritative/http-api/index.html) how the API can be enabled.
|
||||
|
Reference in New Issue
Block a user