def*_*nes 0 domain-name-system localhost apache-2.2
在我的本地开发机器上,我有一个 WAMP 设置(Windows Vista Home Premium、Apache 2、MySQL 和 PHP 5)。我的一个项目是rehash.dustinfineout.com,可能和这个问题有关... 不知为什么,当我尝试在浏览器中访问http://www.rehash.com时,它会自动转发到127.0.0.1环回/本地主机。我完全是无意中发现了这一点。
我已经查看了 http.conf 和 extra/httpd-vhosts.conf Apache 配置文件,这些都没有造成它。我还检查了 Windows 主机文件,但其中也没有条目(C:/WINDOWS/System32/drivers/etc/hosts - 也许我需要检查另一个位置)。
有任何想法吗?
澄清一下,rehash.com 不是我的域名。
C:\>nslookup www.rehash.com
*** Can't find server name for address 192.168.0.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.0.1
Non-authoritative answer:
Name: www.rehash.com
Address: 127.0.0.1 <----- Whoops
Run Code Online (Sandbox Code Playgroud)
您的域指向 127.0.0.1。