You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
897 B

9 years ago
9 years ago
9 years ago
9 years ago
  1. #Listen on localhost
  2. bind-interfaces
  3. listen-address=0.0.0.0
  4. addn-hosts=/etc/hosts
  5. strict-order
  6. # Forward k8s domain to kube-dns
  7. server=/{{ dns_domain }}/{{ skydns_server }}
  8. # Reply NXDOMAIN to bogus domains requests like com.cluster.local.cluster.local
  9. local=/{{ bogus_domains }}
  10. #Set upstream dns servers
  11. {% if system_and_upstream_dns_servers|length > 0 %}
  12. {% for srv in system_and_upstream_dns_servers %}
  13. server={{ srv }}
  14. {% endfor %}
  15. {% elif resolvconf_mode == 'host_resolvconf' %}
  16. {# 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 #}
  17. server={{ default_resolver }}
  18. {% endif %}
  19. {% if kube_log_level == '4' %}
  20. log-queries
  21. {% endif %}
  22. no-resolv
  23. bogus-priv
  24. no-negcache
  25. cache-size={{ cache_size }}
  26. dns-forward-max={{ dns_forward_max }}
  27. max-cache-ttl=10
  28. max-ttl=20
  29. log-facility=-