Point 2 endpoints to the same private DNS name.

0

Hi,

I have a question about a setup that I would like to create. Is it possible to create 2 endpoints (VPC endpoints) A and B where both use the same private DNS name but with different service names. How the DNS resolution work in this case ? Will the DNS resolution will be managed within AWS ? I mean will it test the first endpoint, say hey this does not work so let's try with the second one. And if it works, take the working one ? Thank you

Mehmet
已提問 4 個月前檢視次數 159 次
1 個回答
0

I don't think this will work - here's my reasoning:

If you have a single DNS name (I suspect a CNAME record?) that (say) points to two different service names which relate to two different endpoints - when you resolved that single DNS name, how will DNS know which service name to respond with?

I suspect that you're thinking of Route 53 Health Checks which would be an interesting solution to the problem but it creates another issue:

The application will do a lookup for single-dns-name.com and that points to either service-a.com or service-b.com. DNS chooses service-b.com because that's the one that is healthy and returns the IP address for that. Now, the application connects to what it thinks is single-dns-name.com but is presented with an endpoint that identifies itself (presumably a certificate) that identifies the endpoint as service-b.com - and then things don't (generally) work.

profile pictureAWS
專家
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南