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.

29 lines
547 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. #Set upstream dns servers
  9. {% if upstream_dns_servers is defined %}
  10. {% for srv in upstream_dns_servers %}
  11. server={{ srv }}
  12. {% endfor %}
  13. {% elif cloud_provider is defined and cloud_provider == "gce" %}
  14. server=169.254.169.254
  15. {% else %}
  16. server=8.8.8.8
  17. server=8.8.4.4
  18. {% endif %}
  19. bogus-priv
  20. no-resolv
  21. no-negcache
  22. cache-size=1000
  23. max-cache-ttl=10
  24. max-ttl=20
  25. log-facility=-