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

DOCS: Fix examples in documentation (#1435)

* Add example include

* Replace example includes

* Remove old example includes
This commit is contained in:
Julius Rickert
2022-03-04 13:49:03 +01:00
committed by GitHub
parent 619487738f
commit 6f9e2797b7
43 changed files with 143 additions and 143 deletions

View File

@@ -14,8 +14,7 @@ The difference between `NS()` and `NAMESERVER()` is explained in the `NAMESERVER
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 %}
{% capture example %}
```js
D("example.com", REGISTRAR, DnsProvider("R53"),
NS("foo", "ns1.example2.com."), // Delegate ".foo.example.com" zone to another server.
@@ -24,5 +23,6 @@ D("example.com", REGISTRAR, DnsProvider("R53"),
A("ns2.example2.com", "10.10.10.20"), // Glue records
);
```
{% endcapture %}
{% include endExample.html %}
{% include example.html content=example %}