Hi, Could you answer below question from Core concepts => Deployments What DN . . .

Sambasiva Rao:
Hi, Could you answer below question from Core concepts => Deployments
What DNS name should the Blue application use to access the database db-service in its own namespace - marketing.

You can try it in the web application UI. Use port 6379.
How can we find DNS name to be used? Thanks

Ramit Sharma:
f in same name space, call it directly, else call it as svc-name.<namespace>.svc.cluster.local

Sambasiva Rao:
Thanks Ramit Sharma! can you suggest the cmd to use to find the DNS name in the same namespace…I got the second point

Subrata Biswas:
you will need to use nslookup “hostname/svc-fqdn”

Subrata Biswas:
create test busybox pod and run nslookup from that , nslookup is added in busybox

Sambasiva Rao:
Thanks

unnivkn:
https://medium.com/kubernetes-tutorials/kubernetes-dns-for-services-and-pods-664804211501

unnivkn:

Sambasiva Rao:
Thanks @unnivkn

Sambasiva Rao:
Will try and get back on this if any issue