Skip to content

Commit

Permalink
change dns upstream condition for coredns
Browse files Browse the repository at this point in the history
upstream_dns_servers should change corefile config even resolvconf_mode=docker_dns
  • Loading branch information
waruwat-dev authored Dec 2, 2021
1 parent e824432 commit c25f460
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ data:
{% endif %}
}
prometheus :9153
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
{% if upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
forward . {{ upstream_dns_servers|join(' ') }} {
prefer_udp
}
Expand Down

0 comments on commit c25f460

Please sign in to comment.