You have a web application hosted on AWS VPC with a single EC2 instance with Auto Scaling enabled.
You have also assigned elastic IP address to the EC2 instance.
When you access the elastic IP address, you are able to successfully connect to your web application.
You decided to route requests to your application from a custom domain through Route 53
You have performed the setup on Route 53
However, when you access your custom domain name from internet, you get “Server Not Found” error.
Which of the following could be a reason?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: C.
Option A and B are not valid statements.
Option C is correct.
Although option D looks correct, the question states the connection to web application was successful when connected through elastic IP address.
So this option is not the cause of failure.
The correct answer is C. IP address configured in Route 53 DNS record set might be incorrect.
Explanation:
When you access your web application through the elastic IP address, you are directly accessing the EC2 instance. However, when you want to access it through a custom domain name using Route 53, you need to configure a DNS record set in Route 53 that points to the elastic IP address of your EC2 instance.
If the IP address configured in the DNS record set is incorrect or invalid, you will not be able to access your web application using the custom domain name. This could be the reason why you are getting the “Server Not Found” error.
Option A is incorrect as Route 53 is a public DNS service provided by AWS and can be used to route traffic from the internet to your application running in a VPC.
Option B is also incorrect because you can use Route 53 to route traffic to a single EC2 instance with an Elastic IP address without using an Elastic Load Balancer.
Option D is also a possibility, but before checking the resource on EC2 instance, you should verify the DNS configuration in Route 53. If the DNS configuration is correct, then you can check the resource on the EC2 instance to see if it is available or not.
In conclusion, the most likely reason for the "Server Not Found" error is an incorrect IP address configured in the DNS record set in Route 53.