<p>How to get a full FQDN of the service inside Kubernetes?</p>
<pre><code>➜ k get svc -o wide  
NAME                     TYPE           CLUSTER-IP       EXTERNAL-IP                             PORT(S)    AGE     SELECTOR
airflow-flower-service   ClusterIP      172.20.119.107   &lt;none&gt;                                  5555/TCP   20d     app=edna-airflow
airflow-service          ClusterIP      172.20.76.63     &lt;none&gt;                                  80/TCP     20d     app=edna-airflow
backend-service          ClusterIP      172.20.39.154    &lt;none&gt;                                  80/TCP     20d     app=edna-backend
</code></pre>
<p>so how to query internal Kubernetes DNS to get the FQDN of the backend-service for example?</p>

<p>Go inside any pod in the same namespace with <code>kubectl exec -ti &lt;your pod&gt; bash</code> and then run <code>nslookup &lt;your service&gt;</code> which will typically be, unless you change some configurations in the cluster to: <code>yourservice.yournamespace.svc.cluster.local</code></p>
