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.

34 lines
885 B

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 upstream_dns_servers is defined %}
  12. {% for srv in upstream_dns_servers %}
  13. server={{ srv }}
  14. {% endfor %}
  15. no-resolv
  16. {% elif resolvconf_mode == 'host_resolvconf' %}
  17. {# 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 #}
  18. server={{ default_resolver }}
  19. no-resolv
  20. {% endif %}
  21. {% if kube_log_level == '4' %}
  22. log-queries
  23. {% endif %}
  24. bogus-priv
  25. no-negcache
  26. cache-size={{ cache_size }}
  27. dns-forward-max={{ dns_forward_max }}
  28. max-cache-ttl=10
  29. max-ttl=20
  30. log-facility=-