10.1 official: long delay during name resolution by web browser
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
10.1 official: long delay during name resolution by web browser
PROBLEM: When I click (or type) a link in a browser, there is a long delay while the browser says it is resolving the hostname.
DETAILS: The delay is typically around 10 seconds, sometimes ranging up to 30 seconds.
SYSTEM: 1.1 GHz Celeron, 384Mb RAM, 160 Gb HD, Mandrake 10.1 Official single-booting from a clean install. System runs well in every way except this one (apart from Nautilus crashing, but that's normal). Connected via a 768kb/s ADSL link.
-- This is not a browser-specific problem, since Firefox, Mozilla, and Konqueror all behave the same way.
-- This is not a network transfer problem, since once the transfers start (after "Site found" messages) the transfers are generally fast, taking far less time than the name resolution.
-- This is not a problem with my network, because all the other machine connected to the same switch have no problem, including my ancient 133 MHz Toshiba running Vector 3.2, which resolves names far more quickly.
-- This is not a problem with the machine's hardware, because if I boot it up with a Knoppix CD the same browsers (Konqueror, Mozilla) resolve names in a heartbeat or two and then run just as quickly through the transfers. The same machine also ran Fedora Core 1 without any issues (but with a little less memory) until I installed Mandrake last week.
-- This is not an intrinsic problem with the DNS lookup of the installed system, since using nslookup, dig, or hosts all result in name resolutions in under a second (typically .79 seconds or so, and reasonably consistent)
-- I have tried turning off IPv6 by putting "alias net-pf-10 off" in /etc/modprobe.conf, as suggested in another thread (search for "slow DNS lookup"). It didn't seem to help, but then I note that Knoppix doesn't turn it off either.
-- What's going on here? (Well, obviously :-)
-- This system is my first 2.6 kernel, is that part of the problem?
-- Is there a solution other than returning to Fedora Core 1??
I think opjose's answer is pretty clear. I'll just add that this seems to impact some 2.6.x Kernels as I've experienced this problem on several distros (Suse, Fedora, Mandrake).
This bug is documented on RedHat's web site, with poor info though, if you're interested here is the link: https://bugzilla.redhat.com/bugzilla....cgi?id=124376
Just wanting to add that this solution worked for me. I was having a problem where my web browsers were not able to connect to very many web-sites. It would connect to some sites and would ping some but not all. It was able to lookup the DNS entries for almost all websites, but was having problems transfering data between the site and my computer. I am running through an ADSL router as well.
Thanks for the info, you saved a big head-ache!
Originally posted by jbclarkman
However I'm still getting the huge lag. I'm on a t1 and when I load Windows it works normal.
Can you pls provide more info?
This post is about name resolution problem ie. when you type http://www.google.com you can see on the bottom bar of your browser a message like "resolving host" (the message depends on the browser). for like half a minute and then finally the page loads.
Is this what you're experiencing?
What if you ping www.yahoo.com? what is the response time you get? Is it regular?
If you type the IP@ of a website rather then the hostname, does the page loads faster?
If you FTP a file from the net, does it goes fast? This is a good test because the problem we're talking about in this post affect the resolution of the ftp site's name, but once the connection is establish download is like lightening (well if you have a T1 it should be )
its exactly what you said. As soon as the site comes up. its lightning fast, but getting past the resolving is the problem.
Once the downoad connects its fine, once the ping resolves yahoo.com it pings fine, sometiems the ping does drop however to 51 or 81ms. I don't understand that as I'm on a T1 and through windows I NEVER get this.
How about trying to put those 2 lines:
alias ipv6 off
alias net-pf-10 off
before the "alias eth0...". Just for a quick try. Note that I'm totally unsure this'll help but it's only a 30sec job, worth trying.
Beside this, how is you DNS configuration? Can you post your /etc/resolv.conf file? And also the output of the following command:
grep hosts /etc/nsswitch.conf
Also one way to debug this kind of problem is to do the following.
Open 2 consols (one as root). On the root one, type the command
tcpdump -i eth0 port 53
Note that if you get "command not found" you'll have to install tcpdump.
This command will display any DNS traffic flowing through you ethernet card.
Then on the other shell, type:
This will resolve google and what will be interesting is to see what tcpdump is outputting. When done hit ctrl+c and copy/past tcpdump output in a post so that I can see how it looks.
If the problem comes from a bad DNS config we'll probably get some usefull info out of this. If it's some kind of kernel bug well then too bad. By the way, what distro and kernel are you using? (to display your kernel version: "uname -r")
To find other DNS servers, it's easy. You can do it that way:
www.mci.com, type = A, class = IN
internet address = 18.104.22.168
nameserver = irddd1.mcilink.com.
nameserver = wspdd1.mcilink.com.
internet address = 22.214.171.124
internet address = 126.96.36.199
Then you can see what their DNS are (irddd1.mcilink.com & wspdd1.mcilink.com), this is not secret info. You will have to nslook them up to get the IPs (well here ==> 188.8.131.52 & 184.108.40.206).
If you want to give them a try, let us know if they work better