dnscontrol/documentation/functions/domain/INCLUDE.md

24 lines
387 B
Markdown
Raw Normal View History

---
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 %}