LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2004, 04:18 PM   #1
marksouth2000
Puppy Motivator
 
Registered: Oct 2004
Location: The Shadowy Planet
Distribution: Too many to mention
Posts: 111

Rep: Reputation: 15
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.

DATAPOINTS:
-- 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.

QUESTIONS:
-- 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??

Thanks in advance,
Mark
 
Old 12-05-2004, 05:16 PM   #2
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Try adding those 2 lines at the end of the /etc/modprobe.conf file:

alias ipv6 off
alias net-pf-10 off

Let me know if it works, I'll tell you why it did. I won't bother if this doesn't help you...
 
Old 12-05-2004, 05:40 PM   #3
marksouth2000
Puppy Motivator
 
Registered: Oct 2004
Location: The Shadowy Planet
Distribution: Too many to mention
Posts: 111

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jeickal
Try adding those 2 lines at the end of the /etc/modprobe.conf file:

alias ipv6 off
alias net-pf-10 off

Let me know if it works, I'll tell you why it did. I won't bother if this doesn't help you...
Amazingly, that seems to have done the trick. Thank you very much, and may the blessings of heaven be richly showered upon you.

I had the second line already in my /etc/modprobe.conf so the first is what made the difference.

Now, some more questions:

1. Why does turning off ipv6 make such a difference?

2. Why does Knoppix 3.6 with its 2.4 kernel not suffer the same problem, when the only non-commented line in its /etc/modules.conf is "alias net-pf-17 off"?

3. Why doesn't Mandrake set this up as default?

I look forward to further enlightenment on this topic.

Thanks again.
 
Old 12-05-2004, 06:00 PM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
1. Why does turning off ipv6 make such a difference?

2. Why does Knoppix 3.6 with its 2.4 kernel not suffer the same problem, when the only non-commented line in its /etc/modules.conf is "alias net-pf-17 off"?

3. Why doesn't Mandrake set this up as default?

---------

1) Leaving IPV6 on results in your Linux box trying to first access IPV6 capable DNS servers on your network... which do not currently exist.

2) IPV6 was somewhat broken in 2.4 and requests were not actually transmitted quite often.

3) Because IPV6 is the "next" thing, so to speak, and turning it on is supposed to prepare things for the imminent future.

For the moment it's pointless to rationalize it, just take for granted that turning it off works...
 
Old 12-06-2004, 12:03 PM   #5
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
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
 
Old 12-22-2004, 10:49 PM   #6
gtanghookup
LQ Newbie
 
Registered: Sep 2003
Location: Portland, Oregon
Distribution: Debian and Gentoo
Posts: 27

Rep: Reputation: 15
Thumbs up That worked for me too

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!
-Dan
 
Old 12-24-2004, 09:48 AM   #7
surfduke
Member
 
Registered: Sep 2003
Location: Orange County, CA
Posts: 71

Rep: Reputation: 15
AWESOME..... It worked for me too!!! TYTYTYTY

Only other problem I have now is I can't get any of my messenger services to connect. Not sure what's up there, but they will not work using GAIM or any other client.
 
Old 01-13-2005, 08:36 AM   #8
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
still not working(slow internet connection)

this is what my /etc/modprob.conf contained

alias eth0 xircom_tulip_cb
alias sound-slot-0 maestro
install usb-interface /sbin/modprobe/uhci-hcd; /bin/true


I went into the terminal (did a su to go in as root) and typed this:
emacs /etc/modprob.conf
and added the lines so it now looks like this:

alias eth0 xircom_tulip_cb
alias sound-slot-0 maestro
install usb-interface /sbin/modprobe/uhci-hcd; /bin/true
alias ipv6 off
alias net-pf-10 off

and saved it.

However I'm still getting the huge lag. I'm on a t1 and when I load Windows it works normal. PLEASE HELP

 
Old 01-13-2005, 11:17 AM   #9
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Re: still not working(slow internet connection)

Quote:
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.
[/B]
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 )
 
Old 01-13-2005, 11:38 AM   #10
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
its exactly what you said. As soon as the site comes up. its lightning fast, but getting past the resolving is the problem.

PLEASE HELP

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.

Please help
 
Old 01-14-2005, 11:44 AM   #11
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
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:
Code:
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
Code:
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:
Code:
nslookup www.google.com
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")
 
Old 01-14-2005, 01:10 PM   #12
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
grep host output:

#hosts: db files nisplus nis dns
hosts: files nisplus nis dns

resolv.conf output:

search networkalliance.net
nameserver 208.254.27.x
nameserver 63.124.148.x

the x does have a last characters but as I'm from work I don't want to post that.. Does anyone know of any Better DNS Servers I could use such as MCI or ATT or something like that?
 
Old 01-14-2005, 03:05 PM   #13
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
To find other DNS servers, it's easy. You can do it that way:

Code:
nslookup
>set debug
>www.mci.com
------------
    QUESTIONS:
        www.mci.com, type = A, class = IN
    ANSWERS:
    ->  www.mci.com
        internet address = 198.4.5.227
    AUTHORITY RECORDS:
    ->  www.mci.com
        nameserver = irddd1.mcilink.com.
    ->  www.mci.com
        nameserver = wspdd1.mcilink.com.
    ADDITIONAL RECORDS:
    ->  irddd1.mcilink.com
        internet address = 166.32.161.244
    ->  wspdd1.mcilink.com
        internet address = 166.33.212.187
------------
Non-authoritative answer:
Name:   www.mci.com
Address: 198.4.5.227
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 ==> 166.32.161.244 & 166.33.212.187).
If you want to give them a try, let us know if they work better
 
Old 01-14-2005, 04:34 PM   #14
jbclarkman
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
still no huge change.
 
Old 05-14-2005, 03:24 PM   #15
Sp1t
Member
 
Registered: Jan 2005
Distribution: Suse 10.2
Posts: 68

Rep: Reputation: 15
jeickal, cheers, that works for me too!
 
  


Reply

Tags
dns, search


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
battery monitor long delay maginotjr Slackware 0 07-27-2005 04:35 PM
Problem with web browser DNS resolution pepe_k Mandriva 5 01-04-2005 02:47 AM
How do i set firefox as default web browser in 10.1 official rockmeisster Mandriva 4 12-24-2004 11:12 AM
long delay dummyagain Programming 1 10-28-2003 04:49 AM
lilo long delay??? comtronics Debian 2 10-22-2003 03:59 AM


All times are GMT -5. The time now is 11:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration