Why are the value for Hosted Zone ID different for ELB and Route 53 Alias Target?

Siddharth picture Siddharth · Feb 18, 2016 · Viewed 10.7k times · Source

Here is my load balancer Sid-LB - the Hosted Zone ID is highlighted:

enter image description here

And this is the Route 53 (hosted zone id is highlighted) when I select the load balancer from Alias Target.

enter image description here

I dont understand why these two IDs have to be different. I tried to send an API call with the payload (containing the ELB hosted zone id) to create the record set, which it creates but doesnt work. How is this Alias Hosted Zone ID for Route 53 generated and does it have any connection with the ELB Hosted Zone ID??

Answer

null picture null · May 30, 2017

You can get the Hosted Zone ID of Elastic Load Balancing here: https://docs.aws.amazon.com/general/latest/gr/elb.html

In your case I can see that the Hosted Zone ID is the one for US West (Oregon) - us-west-2.