Bug 88855 - Multiple unnecessary DNS queries in Konqueror
Summary: Multiple unnecessary DNS queries in Konqueror
Status: RESOLVED DUPLICATE of bug 63088
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-05 02:04 UTC by Martin Piskernig
Modified: 2004-10-11 16:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Piskernig 2004-09-05 02:04:39 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When opening a website in konqueror the DNS is queried many times for the same address. E.g. for kde.org ngrep shows 9 queries to resolve "kde.org". Clearly, only the first is necessary. For "kde-look.org" it results in about 20 queries (plus queries for 2 other hosts). It is much worse for heavier sites that I tried - especially with many images it seems a lookup is done for each and every image. 
Replies to other similar bug reports suggest that glibc and its name resolving is not correctly installed. To my best knowledge I have checked all configuration files like /etc/resolv.conf and /etc/host.conf etc. and found no wrong configuration. I also tested some sites with Firefox. It only did exactly one DNS query per host and then seemingly used (glibc's or its own?!) resolver cache which I would regard clever behaviour. 
I also wanted to test the performance difference (the penalty for doing 8 unnecessary lookups is supposed to be quite high on slow connections (think of 56k modems or especially GSM modems in mobile phones with 9600bps which I have to use from time to time)). So I entered some hostnames for testing into /etc/hosts. This would make zero lookups and I wanted to see if there is some noticable difference then - but /etc/hosts is simply ignored by konqueror so I can't tell you hard numbers (for this I'm now going to file its own bug report)... but I really think this issue would gain some visible rendering performance.
Comment 1 Stephan Kulow 2004-09-05 10:38:32 UTC
Look up /etc/nscd.conf - most distributions disable the DNS cache as it's very easy to trick. Yes, firefox got it's own DNS cache and konqueror decided, that caching DNS queries is task of the system. You don't need nscd for that, setting up a local named works fine too.
Comment 2 Thiago Macieira 2004-10-11 16:17:03 UTC
See http://lists.kde.org/?l=kde-core-devel&m=109750384720342 for an explanation.

We already have a bug report open that, if properly solved, will solve this problem as well. I am, therefore, marking this one as a duplicate.

*** This bug has been marked as a duplicate of 63088 ***