prefer_udp for upstream dns servers (#4810)
This commit is contained in:
parent
3617ae31f6
commit
54416cabfd
1 changed files with 6 additions and 2 deletions
|
@ -23,9 +23,13 @@ data:
|
||||||
}
|
}
|
||||||
prometheus :9153
|
prometheus :9153
|
||||||
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
|
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
|
||||||
forward . {{ upstream_dns_servers|join(' ') }}
|
forward . {{ upstream_dns_servers|join(' ') }} {
|
||||||
|
prefer_udp
|
||||||
|
}
|
||||||
{% else %}
|
{% else %}
|
||||||
forward . /etc/resolv.conf
|
forward . /etc/resolv.conf {
|
||||||
|
prefer_udp
|
||||||
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
cache 30
|
cache 30
|
||||||
loop
|
loop
|
||||||
|
|
Loading…
Reference in a new issue