Connect domain name to your EC2 instance ip address (Wordpress)

Assuming that you have an EC2 instance and you have installed wordpress on it either manually or through bitnami image. Your wordpress installation is now live on a ip address and you wish that this should be opened using a domain name. If this is the case, you are at the right place and I am going to resolve your issue.

Using Domain registrar's DNS panel

Login to your domain registrar and move to the DNS section. You need to update the A records there. Copy the ip address of your wordpress blog on which it's opening (Public ip of your ec2 instance) and paste the in your A records.

It's better to update the A records twice. One for www and one for naked url.

After you are done updating the A records, you need to login to your wordpress dashboard, go to settings and click on general.

In this section you need to replace the ip address with the domain name in "Site Address" and "Site URL" fields. Click on update after you are done.


If everything above is done properly, your wordpress site should now open on a domain name.


(Optional) To manage the DNS section, you can also use AWS Route 53.

In case you have any doubt, you can comment below, I shall try to solve your queries.