I would like my domain to point traffic to an ELB DNS name, so that when someone accesses my domain, it spreads the traffic between the servers that the ELB points to (2 EC2 instances, part of an auto-scaling group).
When I copy the ELB DNS name and paste it into the browser, it works great. I get content from the running instances, and if I refresh it switches what instance I'm getting data from. So no problem there.
I think the problem is in my DNS settings.
I registered my domain with Amazon a few months ago. Today I created a public hosted zone for that domain, and followed these steps:
- put "www" for the name
- put "A-IPv4" for the type
- Alias: yes
- I selected the DNS name of my ELB from the drop down, under the list of load balancers
- Set routing policy to "Simple"
- Chose "no" health checks
- Saved record set
I also did the same process for a blank name, so both mydomain.com and www.mydomain.com should both go to the ELB.
Then I waited... and waited... but no matter how long I wait, I keep getting "this site can't be reached" when I go to www.mydomain.com. This happens on various browsers, various machines, various internet connections.
Also, when I use the "test record set" button at the top of my hosted zone, I get a response of "NOERROR."
What is the next step to troubleshoot this?