Use default nameservers which given by the provider instead of googles

This commit is contained in:
Jack Ivanov 2018-02-19 21:51:43 +03:00
parent d8f0393dd8
commit 3781383888
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@
# You can control how dnsmasq talks to a server: this forces
# queries to 10.1.2.3 to be routed via eth1
# server=10.1.2.3@eth1
{% for host in dns_servers.ipv4 %}
{% for host in ansible_dns['nameservers']|default(dns_servers['ipv4']) %}
server={{ host }}
{% endfor %}

View file

@ -31,7 +31,7 @@ conn %default
{% if local_dns is defined and local_dns == "Y" %}
rightdns={{ local_service_ip }}
{% else %}
rightdns={% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support is defined and ipv6_support == "yes" %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
rightdns={% for host in ansible_dns['nameservers']|default(dns_servers['ipv4']) %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}
{% endif %}
conn ikev2-pubkey