LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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 (192.168.2.1) 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
search roc.mn.charter.com
# nameserver 192.168.2.1
nameserver 24.159.193.40
nameserver 68.115.71.53
# timeout 1

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

$ ns_bench 192.168.2.1 24.159.193.40
Nameserver Response Time (ms)
min/avg/max/stdev/retries

192.168.2.1 61.65/61.86/62.44/0.29/0
24.159.193.40 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 192.168.2.1, 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
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

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


Reply


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


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

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