Use Internal pod name as dns

Hello, i am pretty new to digitalocean, i am deploying a small poc.

I am trying to make a call between two of my pods but i can’t find the correct way.

I have a pod-a linked on internet by a load balancer.

Then on this pod-a, i am trying to made a get on pod-b by using pod name pod-b.default.pod.cluster.local:3000 and pod-b.default.svc.cluster.local:3000

does anyone know what am i doing wrong ? do i need to configure something to enable this kind of naming ?

thanks a lot


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


The recommended way for pods to communicate with each other is through services.

Assuming you have 2 services service-a & service-b.

Pods in service-a can communicate to service-b pods by using the DNS name : service-b.default

If service-b is in different namespace, then you can use : service-b.namespace.svc.cluster.local

Nevertheless, incase you want pod-a to connect/ping pod-b, you can do that via pod-ip. Reference :