Fix reverse DNS lookups of service IPs.

This fixes "DNS should provide DNS for services [Conformance]"
e2e test in k8s.
This commit is contained in:
Ivan Shvedunov 2016-09-16 21:01:37 +03:00
parent 76c43f62e2
commit 13874f4610

View file

@ -4,8 +4,6 @@ listen-address=0.0.0.0
addn-hosts=/etc/hosts addn-hosts=/etc/hosts
bogus-priv
#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 %}
@ -18,3 +16,6 @@ server={{ srv }}
# Forward k8s domain to kube-dns # Forward k8s domain to kube-dns
server=/{{ dns_domain }}/{{ skydns_server }} server=/{{ dns_domain }}/{{ skydns_server }}
# Forward reverse lookups for k8s service addresses to kube-dns
rev-server={{ kube_service_addresses }},{{ skydns_server }}