pvc-ansible/roles/base/templates/etc/resolv.conf.j2

12 lines
311 B
Plaintext
Raw Normal View History

2019-06-09 00:11:06 -04:00
# DNS resolver configuration
# {{ ansible_managed }}
2021-01-28 13:34:26 -05:00
domain {{ local_domain }}
2021-10-11 14:41:29 -04:00
{% if recursive_dns_search_domains is defined %}
search {{ recursive_dns_search_domains | join (' ') }}
{% endif %}
2019-06-09 00:11:06 -04:00
options timeout:1 attempts:3 rotate
2021-10-11 14:41:29 -04:00
{% for server in recursive_dns_servers %}
nameserver {{ server }}
{% endfor %}