Reference by DNS in namespaces in Kubernetes

In the same namespace:

db-service
In the other namespace:
db-service.dev.svc.cluster.local
When the service is created a DNS name in this format is added:
cluster.local - default domain of the Kubernetes cluster
svc - subdomain for service
dev - namespace
db-service - service name