Local caching DNS resolver
Only tested on Debian stable, for now.
preferred_dns
: IP address of primary DNS serverfallback_dns
: IP address of DNS server to use only if no other servers (e.g., per-interface) are configuredsearch_domains
(default: none): list of domains to append to bare hostnames
use resolved
: sets/etc/resolv.conf
to point only to local systemd-resolved at 127.0.0.53restart resolved
: restart systemd-resolved.service
main.yml
: apply roleuninstall.yml
: remove. Run prior to removing host from inventory group.
None.
- Ansible role licensed MIT
- Ansible role by Sean Ho