Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

This question already has an answer here:

I havve recently set up a website, I've forwarded it to my Ip and I'm able to access it. However I have also bought a domain which I would like to use for my website which I host through my own pc using xampp.

From what I understand I would need to create a dns server, but do still not understand how to do it.

So my question is, How do I point my newly bought domain to my website which is being hosted using xampp?

Thanks

share|improve this question
add comment

migrated from stackoverflow.com Aug 28 '13 at 19:26

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Stephen Ostermiller Aug 28 '13 at 20:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

Don't set up your own DNS server on your homeline, use a 3rd party provider instead that is 'always online'. Typically your registrar (the place where you bought your domain) can do this for you relatively easy or for a small fee. This allows your DNS to be always available, which is important if you want to for example receive mail.

When you have that done, point the A record of your domain + the www.yourdomain to your XAMPP environment and configure XAMPP. Do this by adding a virtualhost for your domain and you are good to go!

share|improve this answer
    
Thanks for the respond My domain registrar do not support this function :/. Is there any other way, or how do I setup a dns server? –  Henrik Sandstrom Aug 19 '13 at 14:59
add comment

You can use a third party DNS provider(for free). Choose one, register the DNS zone with it, create the A records as ranieuwe said:

@ A your.servers.ip.address
www A your.servers.ip.address

and the NS records, if they are not added by default.

@ NS dnsX.thisDNSprovider.com

After that go to your registrar and change the nameservers of the domain to point to the servers from your NS records (dnsX.thisDNSprovider.com). It should be okay in a few hours.

share|improve this answer
add comment