1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

DOCS: Added GitBook code blocks syntax for dnsconfig.js. (#2149)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Jeffrey Cafferata
2023-03-13 21:30:21 +01:00
committed by GitHub
parent af99942a3e
commit 05be3b83ed
48 changed files with 148 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ Note that the lower bits (the ones outside the netmask) must be zeros. They are
zeroed out automatically. Thus, `REV('1.2.3.4/24')` is an error. This is done
to catch typos.
{% code title="dnsconfig.js" %}
```javascript
D(REV('1.2.3.0/24'), REGISTRAR, DnsProvider(BIND),
PTR("1", 'foo.example.com.'),
@@ -48,6 +49,7 @@ D(REV('2001:db8:302::/48'), REGISTRAR, DnsProvider(BIND),
PTR("2001:db8:302::3", 'three.example.com.'), // 3.0.0...
);
```
{% endcode %}
In the future we plan on adding a flag to `A()` which will insert
the correct PTR() record if the appropriate `D(REV()` domain (i.e. `.arpa` domain) has been