Isn't DNS built explicitly for this?
This might fix problems accidentally, at the cost of k8 dependency.