Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-12-2006, 10:11 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 6

Rep: Reputation: 0
Slow DNS Resolution

I've searched this forum as well as Google for DAYS. Actually, Month's... I'm at my wits end. I'm about to give up Slackware and switch to another distro... It's driving me insane. I can install any other distro on my laptop (I've tried Debian, Fedora and Gentoo) and they all seem to not have this problem! I've used Slackware since 7.0 and this problem started to arise in 9.1 for me. However, I just used a local DNS caching system and everything sped up tremendously. Well, now I can at home, but not at work due to firewall constraints...

DNS Resolution is SO slow sometimes. It takes anywhere from 30 to 45 seconds to resolve a name. This isn't just in Mozilla or any browser, but even when I ping or SSH to somewhere. My /etc/nsswitch.conf is correct as well as my /etc/resolv.conf. Same as they are when I had Fedora and Debian on this laptop, as a matter of fact.

Right now, I'm at work and I'm behind a firewall, of course. However, this didn't seem to bother Debian, Fedora, Gentoo or heck, even Windows XP! When I take my laptop home, I'm NOT behind a firewall and this same issue exists.

Right now I'm using Slackware 10.2 with kernel Does anyone at all have any idea why DNS resolution is so slow in Slackware? This is my last chance at trying to figure this out before I just grin and bare it on learning a whole new distro and possibly facing the days of compile time using Gentoo again.
Old 01-12-2006, 12:56 PM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,613

Rep: Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903
Perhaps you could start with posting the content of some of your configuration files?
To mind come the following;


Do you use a local caching DNS server? Then, also post:

/var/named/caching-example/ (I assume you're using this default file)

That last file could contain IP addresses for the root servers that are no longer in use, and if your own caching DNS server picks the wrong server for its query, it will find the door closed... to check out the list of current root servers, try running this command:
dig . ns
and then compare the IP addresses of these current rootservers with the IP addresses of the rootservers in your local file (likely /var/named/caching-example/ You will probably notice that for some of the servers, the IP addresses has indeed changed over time.

Rather than using a caching DNS server that starts resolving process by querying one of the root servers (which can lead to long delays) it is often faster to rely on your local network or ISP's DNS server. If your computer uses DHCP to get an IP address, the DHCP server will also send the IP address(es) of nearby DNS servers, and this information is then written into /etc/resolv.conf.

Now, this is an answer that might not even apply to your problem (we'll see that when you post your config files) but I thought it would be good to show that relying on the Internet's root servers is not by definition a good idea (unless you keep your local list of root servers current... I do that by running this script as a cron job once a month).



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
slow DNS resolution in Ubuntu septanla Linux - Networking 7 05-11-2009 05:40 PM
Extremely Slow DNS Host Resolution longsword84 Linux - Networking 3 04-01-2005 04:19 PM
DNS resolution suddenly became slow.. please help Sheado Linux - Networking 3 11-14-2004 02:53 PM
DNS Name Resolution Slow on Internet mooreted Linux - Networking 3 12-25-2003 02:57 PM
Really slow dial up internet connection... mainly DNS Resolution... I think jimdaworm Slackware 4 12-13-2003 08:20 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration