Add default GCE hardcoded nameservers

Used only when cloud_provider=gce
This commit is contained in:
Matthew Mosesohn 2016-10-10 17:21:31 +03:00
parent 8c8d978cd8
commit 562b4acbee

View file

@ -10,12 +10,14 @@ server=/{{ dns_domain }}/{{ skydns_server }}
#Set upstream dns servers #Set upstream dns servers
{% if upstream_dns_servers is defined %} {% if upstream_dns_servers is defined %}
{% for srv in upstream_dns_servers %} {% for srv in upstream_dns_servers %}
server={{ srv }} server={{ srv }}
{% endfor %} {% endfor %}
{% elif cloud_provider == "gce" %}
server=169.254.169.254
{% else %} {% else %}
server=8.8.8.8 server=8.8.8.8
server=8.8.4.4 server=8.8.4.4
{% endif %} {% endif %}
bogus-priv bogus-priv