Route53 not resolving domain name to an ec2 instance

amazon ec2amazon-route53amazon-web-servicesdomain-name-systemweb-hosting

Elastic IP associated with an EC2 instance

enter image description here

I had made a transfer of domain name from one aws account to a another, the domain name worked with my previous account and it resolved to an S3 bucket before but after the transfer to an new account it does not resolve the connection to EC2 instance. I'm trying to host a website with the domain name ketan.io. Please help and also educate me if I need to open any port in the firewall other than the HTTP and HTTPS for the DNS to resolve to the EC2 instance. I have added the ServerName as ketan.io in apache config file and also added the domain with the elastic IP address in the /etc/hosts file. Am I missing anything?

Best Answer

Your domain ketan.io isn't associated with Hosted Zone Name Servers: https://toolbox.googleapps.com/apps/dig/#NS/ketan.io - this should display what appears as NS record in your Hosted Zone. For example: https://toolbox.googleapps.com/apps/dig/#NS/evgenyg.io (but don't copy my name servers, your Hosted Zone has a different list)

Your Name Servers listed as NS record in your screenshot: ns-849.awsdns-42.net, ns-90.awsdns-11.com, ns-1303.awsdns-34.org, ns-1655.awsdns-14.co.uk.

Once you have 4 Name Servers you need to follow these instructions to update your domain: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-name-servers-glue-records.html

This will "connect" ketan.io with Route 53 DNS servers.