Cant connect my ec2 instance to a domain

0

Hi, im trying to connect my ec2 instance which has an elastic IP to a domain's web. The domain i purchased is from hostinger but it doesnt work. I contacted the support center of hostinger and they told me everything was going fine by their side. The problem is from AWS. I have double checked absolutely everything and it seems everything is fine, but for some reason i cant see my instance content through my domain. By the way, my Public ip of my ec2 instance works: 3.9.243.78

  • Even I'm facing exactly same problem. I have added the A record with ip address. I'm able to access my website using Ip address but not through domain name. Can someone please help. I think this problem is specific to hostinger domain names.

tony
asked a year ago2694 views
3 Answers
0

Did you update your domain by adding an entry like an A record that points the the EC2 instance IP?

www.mydomain.com A 3.9.243.78 for example?

Also I would recommend that you place the server in a private subnet (within your VPC) and then have a load balancer to direct traffic to your instance. This will provide some security for your instance as it won't be accessible from the outside directly.

You can learn more about this setup from the VPC User Guide example - https://docs.aws.amazon.com/vpc/latest/userguide/vpc-example-private-subnets-nat.html

Hope this helps.

profile picture
answered a year ago
0

Hi

As the website is accessible via the IP, we can eliminate any network issues relating AWS. Assuming that the A record on your hostinger is configured and pointed to the IP 3.9.243.78. Could you please verify that this record is configured correctly? -> https://support.hostinger.com/en/articles/4468886-how-to-manage-a-records-in-hpanel

Also, note that sometimes the DNS records can take up to 24 hours to propagate.

profile picture
Bisina
answered a year ago
0

Even I'm facing exactly same problem. I have added the A record with ip address. I'm able to access my website using Ip address but not through domain name. Can someone please help. I think this problem is specific to hostinger domain names.

sud
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions