You are not logged in.

#1 2011-07-10 14:27:49

opatut
Member
Registered: 2011-04-16
Posts: 4

What redirects me from test.com to localhost?

I just wanted to check if that domain is free, and wondered why my apache index page showed up. I cannot find an entry in /etc/hosts or so, and a friend of mine has the same "problem" (also on archlinux). Is this some default setting somewhere?

Btw. http://www.test.com works just fine. (notice the www)

Offline

#2 2011-07-10 14:48:46

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: What redirects me from test.com to localhost?

I don't have this behavior... Both URL point to the same page.

What gives dig test.com on your system ?

;; ANSWER SECTION:
test.com.        1499    IN    A    204.12.0.50

Offline

#3 2011-07-10 14:54:25

opatut
Member
Registered: 2011-04-16
Posts: 4

Re: What redirects me from test.com to localhost?

Looks like localhost.

;; ANSWER SECTION:
test.com.               0       IN      A       127.0.0.1

Offline

#4 2011-07-10 15:05:43

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: What redirects me from test.com to localhost?

Either your DNS server gives a wrong answer, either your /etc/hosts file contains a line for test.com...

Offline

#5 2011-07-10 23:38:04

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: What redirects me from test.com to localhost?

jaco wrote:

your /etc/hosts file contains a line for test.com...

dig/host commands do NOT use /etc/hosts so your DNS server is misbehaving.

Offline

Board footer

Powered by FluxBB