852 B
852 B
Ansible Role: Unbound
Install and configure Unbound DNS server.
Variables
| Variable | Required | Default | Description |
|---|---|---|---|
unbound_upstream_dns |
No | ["8.8.8.8", "1.1.1.1"] |
Upstream DNS servers |
unbound_allow_access |
Yes | [] |
Networks allowed to query DNS |
unbound_zones |
Yes | [] |
DNS zones to configure |
Example
unbound_upstream_dns:
- "1.1.1.1"
- "8.8.8.8"
unbound_allow_access:
- name: "internal-lan"
network: "10.0.0.0/8"
- name: "dmz"
network: "192.168.1.0/24"
unbound_zones:
- zone: "internal.example.com"
type: "static"
records:
- name: "server1.internal.example.com"
value: "10.0.1.10"
- name: "server2.internal.example.com"
value: "10.0.1.11"