I have registered a domain name with Amazon Route53 and I'm trying to link it to an EC2 instance. I'm unable to do this successfully. I have read documentation many times over, I have looked at many tutorials online, I have read many stack overflow answers. I still haven't been able t figure it out. Help will be greatly appreciated.
What I have done so far:
- Launched EC2 instance and installed LAMP stack. I'm running a web app on the instance.
- Associated an Elastic IP to the instance and I'm able to reach my web app using this IP address.
- Registered domain name with Route53
- Created a Hosted Zone with the same name of registered domain
- Created a Record Set with the following info:
- Name: example.com (of course not literally, I have my domain name here)
- Type: A - IPv4 address
- Alias: No
- TTL(Seconds): 300
- Value: Elastic IP of EC2 instance
- Routing Policy: Simple
This is the point at which I am stuck. When I run nslookup example.com DNS server name
in terminal I get the desired response. Running dig domain name
, as expected returns no answers. How do I finally connect the Hosted Zone to my domain name to get the latter pointing to my EC2 instance?