1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Patrik Kernstock c65ba1c84c 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)
2019-05-20 22:33:50 -04:00

922 B

name parameters
NS
name
target
modifiers...

NS adds a NS record to the domain. The name should be the relative label for the domain. Use @ for the domain apex, though if you are doing this consider using NAMESERVER() instead.

Target should be a string representing the NS target. If it is a single label we will assume it is a relative name on the current domain. If it contains any dots, it should be a fully qualified domain name, ending with a ..

{% include startExample.html %} {% highlight js %}

D("example.com", REGISTRAR, DnsProvider("R53"), NS("foo", "ns1.example2.com."), // Delegate ".foo.example.com" zone to another server. NS("foo", "ns2.example2.com."), // Delegate ".foo.example.com" zone to another server. A("ns1.example2.com", "10.10.10.10"), // Glue records A("ns2.example2.com", "10.10.10.20"), // Glue records );

{%endhighlight%} {% include endExample.html %}