Skip to content

Commit

Permalink
fix resolved config (kubernetes-sigs#8351)
Browse files Browse the repository at this point in the history
  • Loading branch information
liupeng0518 authored Jan 3, 2022
1 parent e88a277 commit 157942a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/preinstall/templates/resolved.conf.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Resolve]
DNS={{ (nodelocaldns_ip |default(coredns_server) )| list | join(' ') }}
DNS={{ ([nodelocaldns_ip] if enable_nodelocaldns else coredns_server )| list | join(' ') }}
FallbackDNS={{ ( nameservers|d([]) + cloud_resolver|d([])) | unique | join(' ') }}
Domains={{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(' ') }}
#LLMNR=no
Expand Down

0 comments on commit 157942a

Please sign in to comment.