What will Route53 do if client ip matches multiple CIDR blocks in different CIDR Locations?

0

I haven't found behavior of Routing policy IP-based that a client ip matches 2 or more CIDR blocks in different CIDR Locations.

For an example, domain: abc.com

Record NameRouting PolicyCIDR LocationEntry Value
geo.abc.comIP-basedCIDR-Location-1198.51.100.1
geo.abc.comIP-basedCIDR-Location-2198.51.100.2

and we have 2 CIDR Locations in CIDR Collection

CIDR LocationCIDR Blocks
CIDR-Location-11.1.1.0/24
CIDR-Location-21.1.0.0/16

Question: When the client (ip 1.1.1.1) trys to resolve geo.abc.com, what result will he get?

2 Antworten
0

Not sure what you meant by: "CIDR-Location-1 contains CIDR Block 1.1.1.0/24 CIDR-Location-1 contains CIDR Block 1.1.0.0/16" You will just have 1.1.0.0/16 spanning your VPC, so...

As for "Record 1: geo.abc.com, CIDR-Location-1, A record to 198.51.100.1 Record 2: geo.abc.com, CIDR-Location-2, A record to 198.51.100.2" You configure your DNS with multiple A records for the same FQDN - the requests would get served in round-robin.

profile pictureAWS
Jules_N
beantwortet vor 2 Jahren
0

I see you added more input/clarification. Here is what I tested:

  • 2 separate VPC in us-east-1 (one with 10.1.0.0/16 and the other with 10.1.1.0/24)
  • Created a Private hosted zone and associated with the 2 VPC above.
  • Spun 2 hosts in each of the VPC with manual assigned IP (.10)
  • nslookup and response was served in round robin, sometime getting the same IP.
profile pictureAWS
Jules_N
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen