Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some reason, certain outgoing traffic on my server gets routed to the Apache webserver I am running. this problem just started happening. I have the webserver set up to use vhosts, the webserver config hasn't been changed for probably a month.

If I try to open a connection to say google.com (note there is no www in the address), the page that shows is the default page for my webserver (meaning the site doesn't have a vhost). If I would have used www.google.com, it would show the expected Google homepage.

I don't know why this started happening; it is really weird. Running CentOS 6.3 x64

I see the default page for my webserver if I use the webserver as a socks proxy for my computer at home. I just downloaded vnc and firefox on the server and tried navigating on there, it goes to the default webserver page too. If I use wget, it gets the proper page from the real Google website. Other processes on the server that try to open a connection to google.com (as well as other websites) show up in Apache log files as well. From the machine, I can ping google.com and get the proper IP address it maps to.

share|improve this question
Have you changed anything related to DNS recently? For example, do you have the wildcard *.yourdomain.com referring to your webserver, and have 'search yourdomain.com' in your /etc/resolve.conf on your client? – jsbillings Aug 3 '12 at 18:44
i haven't changed anything recently related to dns or the webserver. the webserver runs a few websites, all with different domains. i dont have a search directive in /etc/resolv.conf (i never really understood what it does) – Soaz Aug 3 '12 at 18:50
If you run curl http://google.com (or wget ... on the command line, does it go to your web server? Can you narrow it down to it being your browser alone? – jsbillings Aug 3 '12 at 19:14
i added a paragraph to the end of original post with more information on when it occurs and when it doesnt – Soaz Aug 3 '12 at 19:45
It sounds like you didn't intentionally setup your system to proxy, but yet it is. Were you hijacked? Am I reading this wrong? – Tim Aug 3 '12 at 20:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.