fortios_system_dns_database
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_system_dns_database
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_token | str | |||
| enable_log | bool | false | ||
| member_path | str | |||
| member_state | str | |||
| state | str | yes | ||
| system_dns_database | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_system_dns_database:
access_token: '{{ fortios_access_token }}'
state: present
system_dns_database:
authoritative: enable
dns_entry:
- hostname: myhostname
id: "9"
preference: "10"
status: enable
ttl: "0"
type: A
interface_select_method: auto
name: default_name_23
rr_max: "16384"
source_ip: 84.230.14.43
status: enable
ttl: "86400"
type: primary
view: shadow
vrf_select: "0"
vdom: root
name: Configure DNS databases.