Link to home
Start Free TrialLog in
Avatar of jartsa
jartsa

asked on

w2k server + rh linux webserver dns problems

I have one w2k server (pdc) and one Red Hat Linux Enterprise Linux 3.0 server. This w2k
(called hast2.hast.fi) server works as fileserver, people log on that and get their resourses from there.
The RH linux-server is new and it is supposed to become Intranet (web)server (Apache, PHP, mysql etc.).
I have Apache, PHP up and running and my problem is when I try contact this webserver(linux) named intra.hast.fi,  it takes a long time to before page opens. This must be somekind of DNS problem. I have added this intra.hast.fi (and its ip address) into w2k dns (hast.fi forward lookup zones). I have tried different options on network configuration and HTTP configuration (virtual host) on linux server, but the same problems occurs. I don´t have any dns services running in linux box.

Please let me know if You Experts have suggestions how to setup those servers to communicate with each other like they are supposed to !
Avatar of anupnellip
anupnellip
Flag of Bahrain image

does just giving the Ip address in the browser make the page open faster . If not then you should look at apache configuration !
Avatar of jartsa
jartsa

ASKER

Sometimes when I open connection with domain name, page cannot be displayed occurs. Opening page with IP-address doesn´t make opening any faster ! In Apache I have configured following
servername: hast.intra.fi (do I need to use domain name here ?)
virtual hosts: defaults (I have tried IP-based virtual host intra.hast.fi > and its IP, but no difference)

What else need I configure there ?

 

ASKER CERTIFIED SOLUTION
Avatar of umair1
umair1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
IT's definitely not a DNS issue.  If ti resolves at all the problem is not DNS.  Test this with a ping.

Ping  [your server DNS name] -l 4590 -t

This will send a 4k packet repeatedly.  Keep track of any loss or latency.  If the server pings consitently without loss, then you have an issue with apache.  If and when you do attempt to troubleshoot apache, I find it best to eliminate variables first by disabling PHP, mysql, SSL, and any other apache addon modules.  Test a stripped down version of apache then slowly add back services to locate the bottle neck.

PHP can do some nasty things, especialy if mysql is involved.  I am willing to bet that DNS is not even a factor, but either network overload or Apache.
It could be the reverse host lookup on your apache server .  
In your Apache Server httpd.conf change
HostnameLookups  to off
 
also give your server Ip in httpd.conf for

BindAddress
 
 
Avatar of jartsa

ASKER

Now I noticed another strange thing in opening connection to server. When I open connection after a while (like this morning), I can´t open connection with domain name, and when I open the connection with ip-address couple of times and after that works domain name also.
I have checked apache configuration and HostnameLookups are off , and I Binded server address also, but  opening connection I still slow.