# Expanding into New Frontiers - Smart DNS Proxying in Istio

DevFeed: [Expanding into New Frontiers - Smart DNS Proxying in Istio](<https://devfeed.tech/articles/expanding-into-new-frontiers-smart-dns-proxying-in-istio-48705.md>)

Original publisher: [Read original article](<https://istio.io/latest/blog/2020/dns-proxy/>)

Author: Shriram Rajagopalan (Tetrate.io) on behalf of Istio Networking WG

Published: 2020-11-12T00:00:00Z

Content type: article

Language: en

Sources: [Istio](<https://devfeed.tech/sources/istio-blog.md>)

Topics: [istio](<https://devfeed.tech/topics/istio.md>), [service-mesh](<https://devfeed.tech/topics/service-mesh.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Process](<https://devfeed.tech/topics/process.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [proxy](<https://devfeed.tech/topics/proxy.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [dns](<https://devfeed.tech/tags/dns.md>), [external-services](<https://devfeed.tech/tags/external-services.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [istio](<https://devfeed.tech/tags/istio.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-services](<https://devfeed.tech/tags/kubernetes-services.md>), [mesh](<https://devfeed.tech/tags/mesh.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [multicluster](<https://devfeed.tech/tags/multicluster.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [security](<https://devfeed.tech/tags/security.md>), [service-mesh](<https://devfeed.tech/tags/service-mesh.md>), [services](<https://devfeed.tech/tags/services.md>), [sidecar](<https://devfeed.tech/tags/sidecar.md>), [vm](<https://devfeed.tech/tags/vm.md>)

## AI overview

This article explains how DNS resolution affects Istio service meshes running on Kubernetes. It describes challenges involving virtual machines, multicluster access, and external TCP services, including security concerns and services without virtual IPs.

## Source excerpt

DNS resolution is a vital component of any application infrastructure on Kubernetes. When your application code attempts to access another service in the Kubernetes cluster or even a service on the internet, it has to first lookup the IP address corresponding to the hostname of the service, before initiating a connection to the service. This name lookup process is often referred to as service discovery. In Kubernetes, the cluster DNS server, be it kube-dns or CoreDNS, resolves the service's hostname to a unique non-routable virtual IP (VIP), if it is a service of type clusterIP. The kube-proxy on each node maps this VIP to a set of pods of the service, and forwards the traffic to one of them selected at random. When using a service mesh, the sidecar works similarly to the kube-proxy as far as traffic forwarding is concerned. The following diagram depicts the role of DNS today: Role of DNS in Istio, today Problems posed by DNS While the role of DNS within the service mesh may seem insignificant, it has consistently stood in the way of expanding the mesh to VMs and enabling seamless multicluster access. VM access to Kubernetes services Consider the case of a VM with a sidecar. As shown in the illustration below, applications on the VM look up the IP addresses of services inside the Kubernetes cluster as they typically have no access to the cluster's DNS server. DNS resolution issues on VMs accessing Kubernetes services It is technically possible to use kube-dns as a name server on the VM if one is willing to engage in some convoluted workarounds involving dnsmasq and external exposure of kube-dns using NodePort services: assuming you manage to convince your cluster administrator to do so. Even so, you are opening the door to a host of security issues. At the end of the day, these are point solutions that are typically out of scope for those with limited organizational capability and domain expertise. External TCP services without VIPs It is not just the VMs in the mes