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

General docs improvements (#481)

* docs improvements

* Updated matrix as part of "go generate" (e.g. adds SSHFP row)

* Commiting full matrix file

* Added docs for SSHFP record

* Matrix: Mark OVH as SSHFP-capable in docs (see PR #482)
This commit is contained in:
Patrik Kernstock
2019-05-21 04:33:50 +02:00
committed by Tom Limoncelli
parent d84a91c848
commit c65ba1c84c
10 changed files with 180 additions and 29 deletions

View File

@ -21,8 +21,8 @@ D('example.com', REG, DnsProvider('GCLOUD'),
MX('mail', 10, 'mailserver'),
MX('mail', 20, 'mailqueue'),
TXT('the', 'message'),
NS('delegated', 'ns1.dnsexample.com.'),
NS('delegated', 'ns2.dnsexample.com.')
NS('department2', 'ns1.dnsexample.com.'), // use different nameservers
NS('department2', 'ns2.dnsexample.com.') // for department2.example.com
)
{% endhighlight %}
@ -31,10 +31,17 @@ D('example.com', REG, DnsProvider('GCLOUD'),
{% highlight javascript %}
var mailTTL = TTL('1h');
D('example.com', registrar,
NAMESERVER_TTL('10m'), // On domain apex NS RRs
DefaultTTL('5m'), // Default for a domain
MX('@', 5, '1.2.3.4', mailTTL), // use variable to
MX('@', 10, '4.3.2.1', mailTTL), // set TTL
A('@', '1.2.3.4', TTL('10m')), // individual record
NAMESERVER_TTL('10m') // On domain apex NS RRs
CNAME('mail', 'mx01') // TTL of 5m, as defined per DefaultTTL()
);
{% endhighlight %}
@ -138,3 +145,15 @@ D('example3.com', REG, DnsProvider('R53'), DnsProvider('GCLOUD',0),
)
{% endhighlight %}
## Set default records modifiers
{% highlight javascript %}
DEFAULTS(
NAMESERVER_TTL('24h'),
DefaultTTL('12h'),
CF_PROXY_DEFAULT_OFF
);
{% endhighlight %}