Why is Web Browsers so slow at Resolving Hosts

Tom Needs a Hat Mitchell mitch48 at sbcglobal.net
Wed Mar 3 07:29:27 UTC 2004


On Wed, Mar 03, 2004 at 12:45:19AM -0500, jim tate wrote:
> Tom Needs a Hat Mitchell wrote:
> >On Tue, Mar 02, 2004 at 05:02:51PM -0500, jim tate wrote:
> > 
> >
> >>Fedora2-test1
> >>Mozilla,Firefox,Konqueror all three are very slow at Resolving Hosts and 
> >>connecting
> >>to Websites.
> >>Resolv.conf is setup with "nameserver 192.168.1.1" gateway, 
> >>Linksys-WRT55AG,
> >>eathernet, does not make any difference as to what  make of eathernet 
> >>card your using,
> >>not using wireless.
> >>Another PC and Laptop using Fedora1 core has no problems of resolving 
> >>,fast, on > same network.
....

> >On the two linux boxes compare the results of "chkconfig --list | sort "
> >Also on both machines compare:
> >      /etc/resolv.conf          resolver configuration file
> >      /etc/host.conf            resolver configuration file
> >      /etc/hosts
> >
> >My guess is that the quick machines are getting name/host resolution from
> >the comcast name servers and not the Linksys.  Check also the name server
> >configured inside the Linksys, if it is wrong it will be slow.
> >
> >My strategy would be to setup a caching name server and list the comcast
> >name servers and bypass the Linksys.
> >
> >You can snoop on the wire and watch host host names are resolved 
> >(tethereal)
> >and compare the quick and the slow boxes.

> 
> You were right after running "tethereal" and going to http://linuxtoday.com, you can see where
> the Fedora1 core box (192.168.1.2) was going to Comcast.net dns numbers (63.236.73.20)and
> The Fedora2-test1 box(192.168.1.3) is going to the (192.168.1.1)Gateway, Linksys router and
> through the router is where the resolving delay is.

Remember that boxes like the Linksys switch packets.  You need to snoop (tehereal)
on each box.  i.e. 192.168.1.2 cannot snoop 192.168.1.1 traffic unless you use
an old style non switching hub.

> How do I correct this on the Fedora2-test1 box.

Are you using DHCP on one or both boxes?

What does comparing resolv.conf and host.conf tell you?

Try adding the Comcast.net DNS resources to /etc/resolv.conf on the slow box.
You can leave the Linksys ipaddress commented out or last in the list.

Based on mail headers, in your case these may be useful in your hosts
and resolv.conf files.
   68.87.96.3 dns01.jdc01.pa.comcast.net.
   68.87.96.4 dns02.jdc01.pa.comcast.net.

Remember that one works and the other does not.  The answer is at hand.


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.
	mitch48-at-sbcglobal-dot-net





More information about the test mailing list