ansible-infra/roles/unbound
Repository files (latest commit first)
Filename Latest commit message Latest commit date
lilly a315ef48e2
All checks were successful
/ build (push) Successful in 33s
/ Ansible Lint (push) Successful in 2m12s
add local PTR records in z9 to pass rfc7050 validation
We configure dns64 in unbound which also automatically includes the
capability to communicate the local nat64 prefix to clients via
DNS as a mechanism.
This mostly *just works* except that a validation of the received
information is required by RFC7050 which needs requires explicit
unbound configuration. That configuration is implemented here.
2026-12-06 15:22:07 +01:00
..
defaults add local PTR records in z9 to pass rfc7050 validation 2026-12-06 15:22:07 +01:00
files unbound(role): update readme and move task block to top level and remove unused 2026-08-07 22:55:57 +02:00
handlers unbound(role): update readme and move task block to top level and remove unused 2026-08-07 22:55:57 +02:00
meta add local PTR records in z9 to pass rfc7050 validation 2026-12-06 15:22:07 +01:00
tasks unbound(role): also over write fallback_dns in resolvd 2026-08-07 23:36:22 +02:00
templates add local PTR records in z9 to pass rfc7050 validation 2026-12-06 15:22:07 +01:00
README.md add local PTR records in z9 to pass rfc7050 validation 2026-12-06 15:22:07 +01:00

Unbound DNS resolver

Role for a validating, recursive, caching DNS resolver based on Unbound. It is designed to be fast and lean and incorporates modern features based on open standards.

Role Customization

The following variables can be used to customize this role:

  • unbound_install_prometheus_exporter: Boolean of whether Unbound Exporter should also be installed to expose resolver statistics in prometheus format. Defaults to true.
  • unbound_bind_interfaces: List of interface names or IP addresseson which unbound will listen for dns queries. Defaults to [0.0.0.0, ::].
  • unbound_enable_unbound_control: Boolean of whether the remote control feature of unbound should be configured. Defaults to true.
  • unbound_enable_dnssec: Boolean of whether dnssec validation should be enabled. Defaults to true.
  • unbound_access_control: Required List of unbound access control values. Defaults to [].
  • unbound_disable_systemd_networkd: Boolean if true, systemd-networkd is disabled and the local system is pointed towards the configured dns resolver. Defaults to true.
  • unbound_thread_count: The number of threads unbound uses. Defaults to max vCPU Count.
  • unbound_private_domain: List of domains from witch unbound for the domain and its subdomains to allows resolving of RFC1918 addresses. (Not relevent on Debian) Defaults to []
  • unbound_enable_dns64: Whether dns64 module should be loaded. If defined, the unbound_dns64_prefix option must also be set.
  • unbound_dns64_prefix: The prefix in which AAAA records are synthesized when upstream only returns an A record
  • unbound_local_ptr: List of local-data-ptr strings that will be added to the unbound config. Defaults to []