If you are reading this article means you own your Domain name and a Server with an Public IP. If you don’t have either of them, and want to create any of them then refer following:
- Create Virtual Machine/ Server On Amazon Web Services.
- Buy Domain Name From Any Domain Vendors. Visit (Godaddy.com, BigRock and many more).
When it comes to associating your Domain name and Public Server’s IP, its quite a tricky process but don’t worry we will make it simple. The standard process remains same across all the domain vendors. But sometimes the domain providers may change the flow to configure the same.
The standard process is : we have to configure the DNS of our domain name. Here we have to add or edit the “A” Record. In “A” Record we have to add our Public Server’s IP. Due to this, whenever our domain name is called, the domain name is resolved to our public server’s IP. And then the targeted application is accessed.
Here we will see how to Configure our DNS “A” Record at Godaddy.com. Godaddy.com is Domain vendor site, where you can purchase your own domain name. From here we can redirect this domain name to any IP we wish.
Lets assume you have a Public Server’s IP through which your are able to access the application you wish. And you have a Domain name purchased from Godaddy.com.
Follow below steps on Godaddy.com to configure your Domain name.
- Log into your Godaddy.com account.
- Click on “Domains” and then on “All Domains”.
- Here all your domains list will appear. Click on the domain name your wish to configure.
- A page should open containing the details of your newly created domain. Click on the “DNS Zone File”.
- You will find a table saying “A (Host)”, as shown in the image. Now click on the edit icon, under actions.
- A pop up should come up saying “Edit Zone Record”.
- So here in “Points to” text box, enter your public server’s IP and click on “Finish”.
- Done? great. Now you are again on the page we came from. here you will see a notification as shown in the image above. It asks for your confirmation to save the changes. So, click on “Save Changes”.
- Great. You have successfully configured your Domain name and your Public IP.
- Visit your Domain name from browser. You will see what you were expecting. Enjoy!
If you find any difficulties or suggestions, post below.
If you find this article important, Do share.