<p>The /etc/resolv.conf in my containers show "default.svc.cluster.local", if I do an nslookup on one of my services, it shows {servicename}.default.svc.cluster.local. I was wondering what the 'svc' in the search path was referring to as I am doing an nslookup on the servicename already. I.e. is it not duplicated?</p>

<p>For the "cluster.local" part, how do you find the name of your cluster? I would like to know so that I can define it in my Helm template.</p>

<p><code>cluster.local</code> is defined in a configMap <code>coredns</code> in kube-system namespace.</p>

<pre><code>kubectl get cm coredns -n kube-system -o yaml
apiVersion: v1
data:
  Corefile: |
    .:53 {
        errors
        health {
           lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
    }
</code></pre>

<p>Check the <a href="https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/" rel="nofollow noreferrer">docs</a> if you want to customize it.</p>
