mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-17 21:07:49 +08:00
05be3b83ed
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
23 lines
387 B
Markdown
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 %}
|