Domain name is forwarding to the localhost, no idea why

apache-2.2domain-name-systemlocalhost

On my local development machine, I have a WAMP setup (Windows Vista Home Premium, Apache 2, MySQL and PHP 5). One of my projects is rehash.dustinfineout.com, which may be related to the problem… For some reason, when I try to visit http://www.rehash.com in a browser, it forwards automatically to 127.0.0.1 loopback/localhost. I discovered this entirely accidentally.

I have already looked at the http.conf and extra/httpd-vhosts.conf Apache configuration files and these are not causing it. I also checked the windows hosts file but that had no entries in it either (C:/WINDOWS/System32/drivers/etc/hosts – maybe there is another location I need to check).

Any ideas?

Just to clarify, rehash.com is NOT my domain.

Best Answer

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

Your domain is pointed to 127.0.0.1.

Related Topic