Pointing DNS name to IP address on local machine

别等时光非礼了梦想. 提交于 2019-12-06 11:06:16

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/4940395/pointing-dns-name-to-ip-address-on-local-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!