Skip to content

Commit

Permalink
Set default remove_default_searchdomains to false (kubernetes-sigs#10533
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yckaolalala authored and guy.gold committed Oct 30, 2023
1 parent abc7b61 commit e1b9b60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/kubernetes/preinstall/templates/resolved.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
DNS={{ ([nodelocaldns_ip] if enable_nodelocaldns else coredns_server )| list | join(' ') }}
{% endif %}
FallbackDNS={{ ( upstream_dns_servers|d([]) + nameservers|d([]) + cloud_resolver|d([])) | unique | join(' ') }}
{% if remove_default_searchdomains is sameas false or (remove_default_searchdomains is sameas true and searchdomains|default([])|length==0)%}
Domains={{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(' ') }}
{% else %}
{% if remove_default_searchdomains is sameas true and searchdomains|default([])|length != 0 %}
Domains={{ searchdomains|default([]) | join(' ') }}
{% else %}
Domains={{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(' ') }}
{% endif %}
#LLMNR=no
#MulticastDNS=no
Expand Down

0 comments on commit e1b9b60

Please sign in to comment.