Catena Ansible Role: systemd-resolved
Manage system DNS resolver via systemd using systemd-resolved, a system service that provides network name resolution to local applications. It implements a caching and validating DNS/DNSSEC stub resolver, as well as an LLMNR and MulticastDNS resolver and responder.
Variable | Default | Info |
---|---|---|
catena_resolved |
[] |
Set configuration files that control local DNS and LLMNR name resolution. |
catena_resolved_cleanup |
no |
Remove existing configuration files: /etc/systemd/resolved.conf.d/*.conf . |
Manage resolved.conf.d - Network Name Resolution configuration files.
Configuration files will have the .conf extension and will be placed in the configuration snippets directory /etc/systemd/resolved.conf.d
.
# Defaults
catena_resolved: []
# Example
catena_resolved:
# /etc/systemd/resolved.conf.d/dns_server.conf
- name: dns_server
options:
Resolve:
# Cloudflare DNS
DNS: "1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001"