Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-09-2002, 02:41 PM
|
#1
|
LQ Newbie
Registered: Mar 2002
Posts: 3
Rep:
|
Problem with Private IP's on webserver
I am running an apache webserver on a Redhat 7.2 box. It also has WuFTP installed. This computer is connected to a switch which is connected to a router with 3 interfaces (external, optional and trusted).
Now on my trusted network I have private 10.10.x.x addresses that are assigned via a DHCP server. I also have statically assigned public IP addresses on this same network. NAT is taken care of by a Cisco 3640 router on the external interface.
When a user with a private address on the trusted network attempts to go to the webserver which is on the optional network it takes 15 - 30 seconds for the pages to completely load, however when attempted from a public IP address it works just fine.
I assumed that it was a problem with my router with 3 interfaces. I installed in its place a redhat 7.2 box with 3 nics and setup routing that way. The problem still persists and I am at a loss as to what could be wrong. NAT shouldn't have anything to do with the problem because it isn't changed to a public address until it needs to leave my facility via the 3640 router. Does NE1 have ANY ideas as to what could be causing this problem?
|
|
|
03-09-2002, 02:46 PM
|
#2
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Rep:
|
try adding the ips of the problem computers on your lan to /etc/hosts
hooray my 200th post!!!
|
|
|
03-11-2002, 09:24 AM
|
#3
|
LQ Newbie
Registered: Mar 2002
Posts: 3
Original Poster
Rep:
|
Thas my first thought so I tried that. It didn't work either.
|
|
|
03-12-2002, 02:16 PM
|
#4
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Where did you add it to /etc/hosts? On the router or the apache webserver. It's the webserver that is trying to resolve the names. How does the apache server resolve it's names? /etc/nsswitch.conf should tell you where it looks first. Should be files and then dns. Files would mean it looks in the local /etc/hosts.
You can also stop apache from doing a reverse lookup on an ip number, because it slows it down more then necessary. If you still want resolved hostnames in the logfiles then you should use the tool logresolve that comes with apache, and run that as a cron job to resolve the names in your log files.
|
|
|
03-12-2002, 02:28 PM
|
#5
|
LQ Newbie
Registered: Mar 2002
Posts: 3
Original Poster
Rep:
|
thanx for your help
You hit the nail right on the head. It was a second DNS server that was decommisioned a month ago that was causing the problems.
|
|
|
03-12-2002, 02:53 PM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
I've got a similar problem, except its with Sendmail. Outgoing mail, using whatever: pine, elm, Mutt, takes about 20-30 seconds to process out, but not all the time. Could this be an issue with my (hardly reliable) DNS servers?
Cheers,
Finegan
|
|
|
03-13-2002, 04:37 AM
|
#7
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
It is possible, usually a delay on connect but then fast transfers has to do with the fact that it's timing out on a dns query somewhere. The best way to fix it is to find out how your dns names get resolved. First by looking in /etc/nsswitch.conf and check each step it takes for the hostnames entry. Local names which you use in your network should not be resolved by an external dns because you'll definetly get a timeout. If you still think everything is configured right then you could try logging udp packets at port 53. Try and see which dns server it's trying to get it's answers from. If you want to go even further you could try scanning through the contents of the packets to find out which hostnames it's trying to resolve.
You also mentioned that it only sometimes takes a long time. DNS queries are done through udp. On a very busy network udp packets tend to get dropped every so often. So if the udp packet with the dns request gets dropped you'll just receive a timeout.
Hope that helps to find your problem.
|
|
|
All times are GMT -5. The time now is 09:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|