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.

3 réponses
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
répondu il y a un an
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
répondu il y a un an
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
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions