diff --git a/roles/dnsmasq/defaults/main.yml b/roles/dnsmasq/defaults/main.yml index d1cc17f1d..d8ac8b34b 100644 --- a/roles/dnsmasq/defaults/main.yml +++ b/roles/dnsmasq/defaults/main.yml @@ -11,6 +11,9 @@ #nameservers: # - 127.0.0.1 +dns_forward_max: 150 +cache_size: 1000 + # Versions dnsmasq_version: 2.72 diff --git a/roles/dnsmasq/templates/01-kube-dns.conf.j2 b/roles/dnsmasq/templates/01-kube-dns.conf.j2 index 2ce30102f..ff44dbcd1 100644 --- a/roles/dnsmasq/templates/01-kube-dns.conf.j2 +++ b/roles/dnsmasq/templates/01-kube-dns.conf.j2 @@ -27,7 +27,8 @@ log-queries {% endif %} bogus-priv no-negcache -cache-size=1000 +cache-size={{ cache_size }} +dns-forward-max={{ dns_forward_max }} max-cache-ttl=10 max-ttl=20 log-facility=-