This issue is frequently asked by many web developers ... Question:
"I have a VPS hosted server with Windows Server / Linux Server, it is working and I am able to access it by localhost and modify it's contents. Also I have a domain name, say "abc-domain-name.com". My question is how can I make it accessible on the internet by typing my owned domain name in browser?" Answer
This is mostly done by creating a name servers on your VPS and point your domains to those name servers. You'll have to set a DNS record that points to your server.
If you don't know how to create name servers, the alternative method to host your website is to use free DNS services. Your domain registrar may offer a DNS services themselves. If they do not, and only allow you to set nameservers, have a look at http://dns.he.net
(a free DNS hosting service). In the latter case, don't forget to configure the nameservers in your domain registrars panel to the HE DNS servers (ns1.he.net - ns5.he.net)!
The records you will have to add are as follows:
- An A record for www.abc-domain-name.com, pointing to your IP
- A CNAME record for abc-domain-name.com (often represented in a DNS panel as @), pointing to www.abc-domain-name.com
- Optionally, MX and SPF/TXT records if you wish to use e-mail services on your domain/server (this is a whole separate subject to deal with, especially SPF records can be tricky)