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
@@ -18,8 +18,9 @@ Example:
|
||||
|
||||
## Usage
|
||||
|
||||
An example `dnsconfig.js` configuration:
|
||||
An example configuration:
|
||||
|
||||
{% code title="dnsconfig.js" %}
|
||||
```javascript
|
||||
var REG_HOSTINGDE = NewRegistrar("hosting.de");
|
||||
var DSP_HOSTINGDE = NewDnsProvider("hosting.de");
|
||||
@@ -28,6 +29,7 @@ D("example.tld", REG_HOSTINGDE, DnsProvider(DSP_HOSTINGDE),
|
||||
A("test", "1.2.3.4")
|
||||
);
|
||||
```
|
||||
{% endcode %}
|
||||
|
||||
## Using this provider with http.net and others
|
||||
|
||||
@@ -50,8 +52,9 @@ An example `creds.json` configuration:
|
||||
```
|
||||
{% endcode %}
|
||||
|
||||
An example `dnsconfig.js` configuration:
|
||||
An example configuration:
|
||||
|
||||
{% code title="dnsconfig.js" %}
|
||||
```javascript
|
||||
var REG_HTTPNET = NewRegistrar("http.net");
|
||||
|
||||
@@ -63,6 +66,7 @@ var DSP_HTTPNET = NewDnsProvider("http.net", {
|
||||
],
|
||||
});
|
||||
```
|
||||
{% endcode %}
|
||||
|
||||
#### Why this works
|
||||
|
||||
|
Reference in New Issue
Block a user