Log into the website where you registered your domain name. Ther should be a section to change your DNS settings. Look for a section that contains the nameservers. It should have two or more fields that look something like this:
The numbers and domain name will differ, but it will usually always begin with ns. We will be changing these, so click whatever is needed to edit the contents of these fields. Delete whatever values were already in there. Now we will replace each of them with the addressed we got from Amazon Route 53. Please note the following things:
Once you have edited and saved these changes, it is just a matter of waiting. It might take several hours (or even a few days) for these changes to take effect.
You can monitor if the changes have occured using the command line tool
(which should be installed by default on an ubuntu machine). Type:
And if you see the new NS addresses that you entered, then it is ready. Otherwise keep waiting.
When it is ready, you can access your EC2 server using you new domain name :)
Hope this tutorial was helpful.