Only use default resolver in dnsmasq when we are using host_resolvconf mode

pull/799/head
Alexander Block 2017-01-06 10:21:07 +01:00
parent 1d2a18b355
commit a8b5b856d1
1 changed files with 4 additions and 2 deletions

View File

@ -15,15 +15,17 @@ local=/{{ bogus_domains }}
{% for srv in upstream_dns_servers %}
server={{ srv }}
{% endfor %}
{% else %}
no-resolv
{% elif resolvconf_mode == 'host_resolvconf' %}
{# The default resolver is only needed when the hosts resolv.conf was modified by us. If it was not modified, we can rely on dnsmasq to reuse the systems resolv.conf #}
server={{ default_resolver }}
no-resolv
{% endif %}
{% if kube_log_level == '4' %}
log-queries
{% endif %}
bogus-priv
no-resolv
no-negcache
cache-size=1000
max-cache-ttl=10