Solved

DNS Request timed out, never reaching webfront.

Posted on 2008-10-01
4
631 Views
Last Modified: 2008-10-10
Hello experts!

I'm in a sticky situation and hope you guys can help me out. This is what it looks like:
At my company we are running a webfront with Apache 2. The purpose of this is to redirect the user to a CGI server for exectuion of the dynamic webpages. My problem is that there is no response from the webfront! A ping to the DNS resolves the ip-address but gives no other response.

I can verify this because the Apache access.log in the /srv/log/httpd/ directory shows nothing, which in my book tells me that no traffic is let through.
I can also see that the conf files for the site have not been altered for over a year and everything worked fine last friday. =(
Of course I tried to access it from different domains, all with the same result: time out.

This is my first job and I would really like to fix this problem so I can get some respect around here. =)
I know some of you will ask if there are some firewall settings screwing everything up. But since I am a regular mortal developer I have to access to check these.

So any kind of tips would really be appreciated!
And please ask me if anything is unclear and I will do my best to answer.

Best regards Jide
0
Comment
Question by:jide85
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
Rowley earned 500 total points
ID: 22614849
if you're unable to establish a tcp connection there's not much you can do apart from ensure that the service is up and running, the network interfaces are up and correctly configured and the server is listening for connections.

use:
- "ps -ef | grep httpd" to check apache is running
- "netstat -an | grep LISTEN | grep 80" to check what interfaces are listening on HTTP
- ifconfig -a to verify all interfaces are up and running
- check the web server can get past its default gateway..."ping www.google.com" or "telnet www.google.com 80" if icmp is blocked.

If everything else is working...its a networking issue, likely to be a firewall.
0
 
LVL 1

Author Comment

by:jide85
ID: 22622007
Thank you Rowley. This is what I concluded:

"ps -ef | grep "httpd" returns:
root      2309     1  0  2007 ?        00:00:25 /opt/hp-httpd/2/sbin/httpd2.worker -d /opt/hp-httpd/2/conf/shared_front-80 -f httpd.conf -D ALIAS -D CACHE -D DEFLATE -D DIR -D ENV -D EXPIRES -D HEADERS -D LOG_CONFIG -D MEM_CACHE -D MIME -D NEGOTIATION -D PROXY -D PROXY_CONNECT -D PROXY_HTTP -D REWRITE -D SETENVIF -D UNIQUE_ID -D IP_FORWARDING -D INCLUDE -D AUTH_BASIC -D AUTHN_FILE -D AUTHZ_USER -D AUTHN_DEFAULT -D AUTHZ_DEFAULT -D AUTHZ_HOST -D AUTHZ_GROUPFILE -D AUTH_DIGEST -E /srv/log/httpd/shared_front-80/startuperror.log
apache    7980  2309  0 04:02 ?        00:00:00 /opt/hp-httpd/2/sbin/httpd2.worker -d /opt/hp-httpd/2/conf/shared_front-80 -f httpd.conf -D ALIAS -D CACHE -D DEFLATE -D DIR -D ENV -D EXPIRES -D HEADERS -D LOG_CONFIG -D MEM_CACHE -D MIME -D NEGOTIATION -D PROXY -D PROXY_CONNECT -D PROXY_HTTP -D REWRITE -D SETENVIF -D UNIQUE_ID -D IP_FORWARDING -D INCLUDE -D AUTH_BASIC -D AUTHN_FILE -D AUTHZ_USER -D AUTHN_DEFAULT -D AUTHZ_DEFAULT -D AUTHZ_HOST -D AUTHZ_GROUPFILE -D AUTH_DIGEST -E /srv/log/httpd/shared_front-80/startuperror.log
apache    7981  2309  0 04:02 ?        00:00:00 /opt/hp-httpd/2/sbin/httpd2.worker -d /opt/hp-httpd/2/conf/shared_front-80 -f httpd.conf -D ALIAS -D CACHE -D DEFLATE -D DIR -D ENV -D EXPIRES -D HEADERS -D LOG_CONFIG -D MEM_CACHE -D MIME -D NEGOTIATION -D PROXY -D PROXY_CONNECT -D PROXY_HTTP -D REWRITE -D SETENVIF -D UNIQUE_ID -D IP_FORWARDING -D INCLUDE -D AUTH_BASIC -D AUTHN_FILE -D AUTHZ_USER -D AUTHN_DEFAULT -D AUTHZ_DEFAULT -D AUTHZ_HOST -D AUTHZ_GROUPFILE -D AUTH_DIGEST -E /srv/log/httpd/shared_front-80/startuperror.log
apache    7982  2309  0 04:02 ?        00:00:00 /opt/hp-httpd/2/sbin/httpd2.worker -d /opt/hp-httpd/2/conf/shared_front-80 -f httpd.conf -D ALIAS -D CACHE -D DEFLATE -D DIR -D ENV -D EXPIRES -D HEADERS -D LOG_CONFIG -D MEM_CACHE -D MIME -D NEGOTIATION -D PROXY -D PROXY_CONNECT -D PROXY_HTTP -D REWRITE -D SETENVIF -D UNIQUE_ID -D IP_FORWARDING -D INCLUDE -D AUTH_BASIC -D AUTHN_FILE -D AUTHZ_USER -D AUTHN_DEFAULT -D AUTHZ_DEFAULT -D AUTHZ_HOST -D AUTHZ_GROUPFILE -D AUTH_DIGEST -E /srv/log/httpd/shared_front-80/startuperror.log

So the apache seems to be running.

netstat -an | grep LISTEN | grep "80" gave me:
tcp        0      0 :::80                       :::*                        LISTEN
So even this looks like it is working.

ifconfig -a:
command not found
I guess this is because our service/hardware provider won't let us do this (?).

ping ww.google.com & GET http://www.google.com
Both returned satisfying results.


Well I guess all this concludes that there is a firewal issue. I have reported the problem and if any one has something more to add please feel free. Or else it's a waiting game. =)

Thanks Rowley.
//Jide
0
 
LVL 13

Assisted Solution

by:Rowley
Rowley earned 500 total points
ID: 22622060
You'll find the ifconfig command in /sbin or /usr/sbin.

Just check your can't telnet to your own website on port 80. Chances are you'll get "connection refused" or "could not open connection to the host..."

One other thing, make sure you are resolving the address correctly!
0
 
LVL 1

Author Comment

by:jide85
ID: 22687050
Still no result.
But thanks a lot Rowley, I now know how to better search for these kinds of errors.
I'll post the answer, if it ever shows up.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
rDNS on single IP and multiple domains 11 51
Additional DC vs Child Domain 12 55
Apache module 5 66
(Same as parent Folder) Host (A) IP: x.x.x.x 7 43
One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question