Pointing DNS name to IP address on local machine

5k views Asked by At

This might be a stupid question but i would really appreciate any compact answer. I have uploaded a Joomla site on my local machine using a static IP address (213.221.211.111 for example). I have registered a domain (like www.example.com) on Godaddy.com. Within their dashboard, I set the primary and secondary name servers (I looked it from my router setup page). Is there any else I need to do so that entering e.g. www.example.com would take the user to 213.221.211.111.

2

There are 2 answers

2
jricher On BEST ANSWER

Inside of godaddy, you need to map "www" to your static IP address. It would be a good idea to also map the default entry for your domain, sometimes called "@".

Edit: Upon further reading of your original question, you don't set the primary and secondary DNS servers for your domain to your ISP's servers. Your domain's primary and secondary servers are for the addresses of the servers that are responsible for serving your domain. Unless you have your domain hosted with your ISP and not with godaddy, then this is not the right thing to do at all. If you have your domain hosted with godaddy, follow their instructions for setting up a domain and pointing "www" at an IP address.

1
Chris On

In addition to what jricher said, you will also probably need to port forward.