create_dns_zone
Create a local DNS zone on FortiGate for internal or public name resolution. Define domain, view, TTL, and initial A, AAAA, CNAME, MX, NS, or PTR records.
Instructions
Create a local DNS zone. view=shadow serves internal clients. FortiOS does not accept wildcard (*) hostnames, so add one record per name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Default TTL in seconds (default 300) | |
| name | Yes | Zone object name, e.g. lab | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| view | No | shadow (internal, default) or public | |
| extra | No | Extra FortiOS attributes merged into the request body as-is (hyphenated keys) | |
| domain | Yes | Domain, e.g. lab or lab.home.arpa | |
| records | No | Initial records | |
| authoritative | No | Answer NXDOMAIN for unknown names in the zone (default true) |