LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2005, 11:16 PM   #1
cb8100
LQ Newbie
 
Registered: Feb 2004
Location: Monterey, CA USA
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Problem with web server and DNS


I'm not really sure what's going on, so bear with me, please

I installed Apache 2.0.53 today and set up a web site. When I view it on my LAN, everything runs perfectly fine.

If I try to access the site over the Internet, the site takes *forever* to load (20 seconds for an 8KB image).

I ran Ethereal and I think the slowdown is coming from failed DNS queries. Every time I get a connection on my web server port (80) the server sends a DNS query out and gets the response "DNS Standard query response, No such name."

I think the problem may lie in the address that my server is requesting the query on:

Queries->etho: type A, class inet.

I'm pretty sure that the server should be querying the connecting IP address and not "etho" (yes, that's an "oh" and not a "zero").

Any idea what the heck is causing my server to send out the query for "etho?" Is that even the probme? I have a dynamic IP address from my ISP, so I'm using dyndns.org. The server has a static IP address set up on the LAN. I have my ISP's DNS servers in my /etc/resolve.conf file. Apache isn't trying to do any hostname lookups (according to httpd.conf). I have no other network/Internet related problems.
 
Old 03-17-2005, 03:45 PM   #2
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
Hm, not my special expertise, but I do know somewhat, and even sometimes somewhy (now if I can acquire somewho & somewhere I'll be getting places ), so I suggest you post two (for clarity) more messages here; one has all your server's network setup data, and the other has your Apache setup re networking. Subject to securtiy concerns, of course!

Might also need to tell us a little about your network & how the server cnonects to the World Outside...; Does the server have two nics, is it directly on your lan, and if no followed by yes, how does it get through to the W.O...

May need more, but this sounds like a good start.

Oh!, and which version of what OS does it run? It's hard to gave too many details here, as long as they relate to the basic O/S and the networking.

Luck!,
 
Old 03-17-2005, 04:14 PM   #3
vtbludgeon
Member
 
Registered: Sep 2002
Location: New Jersey, USA
Distribution: Ubuntu, Xubuntu, Debian
Posts: 62

Rep: Reputation: 18
OK, I am very far from an expert in these matters but I am trying to up my karma by trying to help, so...

Is it possible that the problem is with your ISP? Possibly they are throttling traffic to port 80 just to frustrate dynamic IP home users like yourself. You might try running Apache on a high-numbered non-standard port nnnn and accessing yoursite.org:nnnn, see if that makes a difference.
 
Old 03-17-2005, 08:21 PM   #4
cb8100
LQ Newbie
 
Registered: Feb 2004
Location: Monterey, CA USA
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
I tried running my web server on a bunch of different ports, but all have the same problem. I've even tried going directly to my (WAN) IP address instead of going to my DYNDNS hostname.

The server is running on a slackware 10 box with kernel 2.4.26. The box has 1 NIC which is connected to the built in switch on my Netgear MR814 router.

Here are the relevant (ie, used) portions of my httpd.conf

ServerRoot "/usr/local/apache2"

<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>

Listen 192.168.0.6:8088
#Listen 80

User nobody
Group #-1

ServerName mydyndnshostname:8088

UseCanonicalName On

DocumentRoot "/usr/local/apache2/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/usr/local/apache2/htdocs">

Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny
Allow from all

UserDir public_html

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

TypesConfig conf/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

ErrorLog logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access_log common

ServerTokens Full

ServerSignature On

Alias /icons/ "/usr/local/apache2/icons/"

<Directory "/usr/local/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/local/apache2/manual$1"

<Directory "/usr/local/apache2/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all

<Files *.html>
SetHandler type-map
</Files>

SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>

ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

A bunch of stuff about language definitions...

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler server-parsed .shtml

AddHandler type-map var

AddType text/html .shtml

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>


Last edited by cb8100; 03-18-2005 at 09:49 AM.
 
Old 03-19-2005, 02:19 PM   #5
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
cb8100,

Ok, like I said I am not an Apache expert, but such as I know, I didn't *notice* anything wrong.

I also do not (yet) know DYNDNS (probably should explore--), but I also have a router between the DSL-modem and the computerS, But haven't yet tried to run a server from inside here.

I do have some small suspicion, though, that the router might, and I said *might*, be where the extra dns-time is going. Once the dns has resolved, are there still delays in the established communication, or is this problem *only* while resolving via DYNDNS ?
(I *suspect* that DYNDNS will add some time by defiition.)

LOL Again,
 
Old 03-21-2005, 10:47 AM   #6
cb8100
LQ Newbie
 
Registered: Feb 2004
Location: Monterey, CA USA
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
The problem seems to have fixed itself...

It still loads way to slow if I check it via the 'Net from home, but I can pull it up at work no problem and I've had friends pull it up with no problem. I'll just write this off as one of those development oddities.

Thanks for the suggestions though
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web server ,dns serve,mysql server ibrahimovhasan Linux - Newbie 4 05-11-2005 03:29 AM
web server dns help sortia Linux - Newbie 8 01-25-2005 05:25 PM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
dns and web server without www in address bbqdude Linux - Networking 8 02-05-2004 08:40 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration