<p>I have an ubuntu box out of the kubernetes cluster</p>

<p>My /etc/resolv.conf content</p>

<pre><code>nameserver 10.3.0.1 (kubedns)
</code></pre>

<p>If i make a nslookup, everything works fine</p>

<pre><code>nslookup spark-master-0.spark-master.ns.svc.cluster.local
Server:     10.3.0.1
Address:    10.3.0.1#53

Non-authoritative answer:
Name:   spark-master-0.spark-master.ns.svc.cluster.local
Address: 10.2.0.252
</code></pre>

<p>if i try to use any other tool (chrome, curl, ping, wget) i get an error:</p>

<pre><code>curl spark-master-0.spark-master.ns.svc.cluster.local
curl: (6) Could not resolve host: spark-master-0.spark-master.ns.svc.cluster.local
</code></pre>

<p>The only way is to add search .cluster.local in /etc/resolv.conf, but now i cannot use the fqdn of the nodes</p>

<p>any tip on how to use the fqdn ?</p>

<p><strong>Update</strong> The same setup in my mac works perfect ! the problem is only with my ubuntu 14.04.3</p>

<p>It seems like FQDN is working fine with DNS but issue with the host system.</p>

<p>Can you try after changing the below entry in /etc/nsswitch.conf.</p>

<pre><code>hosts:          files mdns4_minimal [NOTFOUND=return] dns
</code></pre>

<p>to</p>

<pre><code>hosts:          files mdns4_minimal dns [NOTFOUND=return]
</code></pre>

<p>if above also not work then try putting only DNS.</p>

<pre><code>hosts:          dns [NOTFOUND=return]
</code></pre>
