Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-02-2015, 04:32 PM   #1
LQ Newbie
Registered: Jan 2015
Distribution: Slackware 12.2
Posts: 1

Rep: Reputation: 0
Slackware, dns lookups are slow because resolv.conf includes my routers nameserver

This is frustrating as heck. The router is a Myessentials el cheapo (DHCP) sold at one time by Belkin.

If the router's internal DNS server is allowed to do name lookups, it slows down browsing dramatically.

Windows does not exhibit any slowdown with this same router, on the same PC.

The fix is to edit resolv.conf, take out the routers dns server ( and make sure it doesn't get overwritten on the next boot, by editing /etc/rc.d/rc.inet1.conf to include:

DHCP_KEEPRESOLV[0]="yes" # need this with the new router

$ cat /etc/resolv.conf
# Generated by dhcpcd for interface eth0
# nameserver
# timeout 1

Name lookups take over 60 ms using the router vs less than 15 using Charters'.

$ ns_bench
Nameserver Response Time (ms)
min/avg/max/stdev/retries 61.65/61.86/62.44/0.29/0 12.52/12.78/13.23/0.25/0

So now if I want to try out slackware 13 on a live CD. Slow, Slow, Slow Name lookups until I edit resolv.conf and take out, then wonderful !

I've tried getting the router to stop reporting that it's a valid Name server to no avail, and Charter uses dynamic IPs.

I suppose the answer is to "buy a new router" but it's not a problem when running the same PC under Windows, and a new router might do the same thing.

I have found a workaround, so the problem is solved for me, but newbies trying linux may discover that browsing under windows is faster than browsing under linux, which doesn't need to be.

Last edited by 952audio; 01-03-2015 at 02:24 AM. Reason: edit to statement of problem solved rather than question
Old 01-03-2015, 04:07 PM   #2
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Moderator response

Since you state the thread is [Solved]. I am replying to take the thread off zero reply.

I do suggest that in the future you should reply to the thread with a solution post instead of editing the OP to include potential solutions.


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
Useage of nameserver ips in /etc/resolv.conf VolkHe Linux - Server 34 12-21-2014 12:42 PM
nameserver entries in /etc/resolv.conf Ron7 Linux - Software 11 09-03-2010 04:18 PM
/etc/resolv.conf permissions are 600 and name lookups fail for other users? RaelOM Solaris / OpenSolaris 7 10-16-2009 01:45 PM
router being added to resolv.conf as nameserver thatwouldbeme Linux - Networking 3 11-15-2006 01:44 PM
pppd: nameserver -> /etc/resolv.conf ?? tredegar Linux - Networking 6 03-21-2004 08:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 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