Windows 10主机文件不parsing任何域

我编辑我的主机文件,以添加一个新的本地开发环境,从那时起,即使没有新的条目,它将无法正常工作。 我虽然文件必须腐败,所以我做了一个新的,仍然没有运气。

我已经确保使用正确的语法,正确的编码(ANSI也试过UTF-8),没有.txt文件扩展名,没有奇怪的字符(使用记事本++上的显示字符)我甚至尝试将其设置为系统文件试图强制Windows使用它,但也没有工作。

另外我刷新ipconfig的DNS,我已经尝试closuresWindows DNS服务,重新启动。 它似乎正在被完全忽略。

我大部分时间都在谷歌,这让我很难过!

使用FtpWebRequest附加到大型机上的文件的问题

CakePHP 1.3:高CPU使用率

WCF托pipe在Windows服务错误

Linux的哪个发行版最适合Java Web应用程序?

dns lookup在离线状态下不能正常工作

hosts文件包含以下内容

127.0.0.1 ocommerce.test 127.0.0.1 www.ocommerce.test

这就对了。

我也试过了

127.0.0.1 ocommerce.test www.ocommerce.test

127.0.0.1 ocommerce.test www.ocommerce.test

当ping域名时,我得到“Ping请求无法find主机ocommerce.test,请检查名称,然后再试一次”。

任何帮助将被大力赞赏。

编辑:

如果其他人甚至在创build新文件之后仍然在苦苦挣扎,请尝试复制这些内容并将行添加到底部。 (这是我所复制的,不知道为什么,但之后它的工作!)

# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally,comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

在Python 2.6.4的urllib2:任何方式来覆盖Windows主机文件?

从Win32应用程序和IBM RDZ / Eclipse一致访问大型机文件?

/ etc / hosts不会影响PHP

如何从http:// localhost:8123中删除端口号作为http:// localhost?

如何让Windows 7上的Web浏览器考虑etc / hosts文件

从另一台机器上复制一个已知的好文件,并确保只用Windows内置的记事本编辑器或记事本++编辑新文件 – 而不是其他任何东西。

相关文章

引言 本文从Linux小白的视角, 在CentOS 7.x服务器上搭建一个...
引言: 多线程编程/异步编程非常复杂,有很多概念和工具需要...
一. 宏观概念 ASP.NET Core Middleware是在应用程序处理管道...
背景 在.Net和C#中运行异步代码相当简单,因为我们有时候需要...
HTTP基本认证 在HTTP中,HTTP基本认证(Basic Authenticatio...
1.Linq 执行多列排序 OrderBy的意义是按照指定顺序排序,连续...