Windows 和我的开发人员中的主机文件
我的一个网站 - mediadeals.co.uk 显示一个空白页面。
所以我回到了我的开发人员那里。他要求我将其添加到我的主机文件中 在 windows->system32->drivers->etc->hosts
74.86.205.232 mediadeals.co.uk
执行此操作后,网站开始工作。这意味着什么?
One of my sites - mediadeals.co.uk is showing a blank page.
So I went back to my developer. He asked me to add this on my hosts file
in windows->system32->drivers->etc->hosts
74.86.205.232 mediadeals.co.uk
After doing this the site started working. What does this mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
太疯狂了。他所做的只是让它在你的机器上运行。主机文件只是将名称映射到 IP 地址。它就像本地 DNS。要让外界看到这一点,mediadeals.co.uk 的权威 DNS 服务器需要有一条指向 74.86.205.232 的 A 记录。
Thats crazy. All he did was make it work on YOUR machine. The hosts file simply maps names to IP addresses. Its like a local DNS. What needs to happen for the outside world to see this the DNS servers that are authoritative for mediadeals.co.uk need to have an A record pointing to 74.86.205.232.
您多久前注册了该网站名称?不要忘记 DNS 条目可能需要一段时间才能在网络上传播。有时 24 小时以上。
顺便说一句,该“修复”仅适用于您的计算机。它将友好的 URL 映射到您的 IP 地址,而不是全世界的 IP 地址。
How long ago did you register that site name? Don't forget that DNS entries may take a while to propagate across the web. 24 hrs+ sometimes.
And btw, that "fix" will ONLY work on your machine. It maps the friendly URL to an IP address for you, not for the world.
它不起作用的原因是没有它的 DNS 记录。
主机文件允许您通过本地 DNS 替换进行指向。
您所需要的只是将站点托管在某处并设置 DNS 条目。
如果你喜欢这个网站并且他愿意以 150 美元的价格托管,那么就去吧,具体取决于你的合同,如果他应该在最初的预算中完成,那么你应该对此提出质疑。
关于
The reason its not working is there is no DNS record for it.
The hosts file is allowing you to point via a local DNS replacement.
All you need is to get the site hosted somewhere and a DNS entry setup.
If you like the site and he is willing to host for $150 then go for it, depending on your contract, if he should have done in the initial budget then you should question this.
RE