What prevents Route 53 public and private same hosting addresses from colliding?

0

Using route53, some addresses are accessed only internally and others are accessed publicly.

Both are configured with the same hosting name, only the subdomains are configured differently. Then one domain was not connected.

Is there any way to solve this problem?

joker
질문됨 2년 전217회 조회
1개 답변
0
수락된 답변

Route53 prioritizes private hosted zone over public hosted zone if the domain name is exactly "same". For ex) VPC A has private hosted zone associated with it for "abc.com" and there is actually a public hosted zone "abc.com". Any record lookup under abc.com from the VPC will go to private hosted zone and if the record is not present you would get a NXDomain (it will not search the public hosted zone)

When you see that there are two sub-domains, one being resolved internally and one publicly the scenario would be as follows:

  • VPC A has private hosted zone for "internal.abc.com" and there is a public hosted zone for "abc.com". --> If you lookup for anything under internal.abc.com, for ex, "talk.internal.abc.com" the answer is from the private hosted zone. (If record is not present it will not fall back to public hosted zone) --> If you lookup for anything else under "abc.com" for ex, "dd.abc.com" , the request would be sent to the public hosted zone.

In this scenario, there is no exact match so we choose the longest match for resolution and hence longest match for "talk.internal.abc.com" is "internal.abc.com" (Private hosted zone) and not "abc.com" (public hosted zone). However for ""dd.abc.com" the longest prefix match will be "abc.com"(public hosted zone).

profile pictureAWS
GG
답변함 2년 전
profile picture
전문가
검토됨 6달 전
  • I didn't explain in detail, so it's not the answer I was looking for, but thank you for the explanation.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠