dnscontrol/documentation/functions/domain/INCLUDE.md
Jeffrey Cafferata 05be3b83ed
DOCS: Added GitBook code blocks syntax for dnsconfig.js. (#2149)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-03-13 16:30:21 -04:00

23 lines
387 B
Markdown

---
name: INCLUDE
parameters:
- domain
parameter_types:
domain: string
---
Includes all records from a given domain
{% code title="dnsconfig.js" %}
```javascript
D("example.com!external", REGISTRAR, DnsProvider(R53),
A("test", "8.8.8.8")
);
D("example.com!internal", REGISTRAR, DnsProvider(R53),
INCLUDE("example.com!external"),
A("home", "127.0.0.1")
);
```
{% endcode %}