Windows 和我的开发人员中的主机文件

发布于 2024-08-09 09:39:44 字数 205 浏览 6 评论 0原文

我的一个网站 - 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

疯到世界奔溃 2024-08-16 09:39:44

太疯狂了。他所做的只是让它在你的机器上运行。主机文件只是将名称映射到 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.

2024-08-16 09:39:44

您多久前注册了该网站名称?不要忘记 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.

轮廓§ 2024-08-16 09:39:44

它不起作用的原因是没有它的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文