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.

38 lines
1.0 KiB

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