首页 > 解决方案 > 找不到localtest.me的服务器IP地址

问题描述

我试图通过 IIS 设置测试绑定到 localtest.me,但它没有解析到我的本地 IP 地址。我对 localtest.me 的理解是它应该自动解决。在 Chrome 中得到错误消息:

找不到 blog-test.localtest.me 的服务器 IP 地址。

ping blog-test.localtest.me 时出现以下错误:

Ping request could not find host blog-test.localtest.me. Please check the name and try again.

在 IIS 中,我有一个绑定到 blog-test.localtest.me 的站点,其设置如下: IIS 设置

我在网上阅读的所有内容都建议 localtest.me 应该自动解决?是这种情况还是我缺少设置步骤?

标签: iisdns

解决方案


您只需在本地主机文件中添加此条目,它就会起作用。

在 Windows 机器上 -C:\Windows\System32\drivers\etc\hosts

在 *nix 机器上 -/etc/hosts


推荐阅读