将DNS名称指向本地计算机上的IP地址 [英] Pointing DNS name to IP address on local machine

查看:299
本文介绍了将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.

推荐答案

在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 "@".

编辑:在进一步阅读了原始问题之后,您没有将域的主要和辅助DNS服务器设置为ISP的服务器.域的主要和辅助服务器用于负责服务您的域的服务器的地址.除非您将域托管在ISP上,而不是在Godaddy上托管,否则这根本不是正确的选择.如果您的域名托管在godaddy上,请按照他们的说明进行操作,以设置域名并将IP地址指向"www".

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.

这篇关于将DNS名称指向本地计算机上的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆