将 DNS 名称指向本地计算机上的 IP 地址
这可能是一个愚蠢的问题,但我真的很感激任何简洁的答案。 我已使用静态 IP 地址(例如 213.221.211.111)在本地计算机上上传了一个 Joomla 网站。我已在 Godaddy.com 上注册了一个域名(例如 www.example.com)。在他们的仪表板中,我设置了主要和辅助名称服务器(我从路由器设置页面查看)。 我还需要做什么才能输入 www.example.com 将用户带到 213.221.211.111。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 godaddy 内部,您需要将“www”映射到您的静态 IP 地址。最好还映射您的域的默认条目(有时称为“@”)。
编辑:进一步阅读您的原始问题后,您没有将您的域的主要和辅助 DNS 服务器设置为 ISP 的服务器。您的域的主服务器和辅助服务器是负责为您的域提供服务的服务器的地址。除非您的域名由您的 ISP 托管,而不是由 godaddy 托管,否则这根本不是正确的做法。如果您的域名由 godaddy 托管,请按照他们的说明设置域名并将“www”指向 IP 地址。
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.
除了 jricher 所说的之外,您可能还需要向前移植。
In addition to what jricher said, you will also probably need to port forward.