Merge pull request #763 from bogdando/resolver_fallback
Fallback to default resolver if no nameserverspull/770/head
commit
1c48a001df
|
@ -70,7 +70,7 @@
|
||||||
{%- if skip_dnsmasq|bool and not dns_early|bool -%}
|
{%- if skip_dnsmasq|bool and not dns_early|bool -%}
|
||||||
{{ [ skydns_server ] + upstream_dns_servers|default([]) }}
|
{{ [ skydns_server ] + upstream_dns_servers|default([]) }}
|
||||||
{%- elif dns_early|bool -%}
|
{%- elif dns_early|bool -%}
|
||||||
{{ upstream_dns_servers|default([default_resolver]) }}
|
{{ upstream_dns_servers|default([]) }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ [ dns_server ] }}
|
{{ [ dns_server ] }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
@ -78,6 +78,6 @@
|
||||||
- name: generate nameservers to resolvconf
|
- name: generate nameservers to resolvconf
|
||||||
set_fact:
|
set_fact:
|
||||||
nameserverentries:
|
nameserverentries:
|
||||||
nameserver {{( dnsmasq_server + nameservers|default([])) | join(',nameserver ')}}
|
nameserver {{( dnsmasq_server + nameservers|default([default_resolver])) | join(',nameserver ')}}
|
||||||
supersede_nameserver:
|
supersede_nameserver:
|
||||||
supersede domain-name-servers {{( dnsmasq_server + nameservers|default([])) | join(', ') }};
|
supersede domain-name-servers {{( dnsmasq_server + nameservers|default([default_resolver])) | join(', ') }};
|
||||||
|
|
Loading…
Reference in New Issue