Gentoo Archives: gentoo-user

From: Daniel Beecham <joshu@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?
Date: Sat, 13 Sep 2008 01:10:50
Message-Id: 1221268253.6790.6.camel@maintainer
In Reply to: Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this? by Alan Mackenzie
1 As long as speedport.ip is 192.168.2.1, the routes are okay, and the
2 resolv-file is okay aswell.
3
4 It's most likely either DNS-cacheer, i.e. your own router, or the
5 DNS-server your ISP is giving you beeing the bottleneck.
6
7 You could go ahead and dig(1) both those servers and perhaps time(1)
8 that. If you can find any logs in your router that would help aswell.
9
10 --
11 Daniel.
12
13 On Fri, 2008-09-12 at 20:59 +0000, Alan Mackenzie wrote:
14 > Hi, Daniel,
15 >
16 > On Fri, Sep 12, 2008 at 08:50:13PM +0200, Daniel Beecham wrote:
17 >
18 > > > However.... looking up URL's is very, very slow. This is most
19 > > > noticeable when running emerge. It is very also noticeable running
20 > > > Firefox; the looking up is _much_ slower than on my existing Debian
21 > > > sarge system.
22 >
23 > > > Presumably, I need to configure some sort of DNS cache, or proxy, or
24 > > > whatever it might be called. I've looked in
25 > > > <http://www.gentoo.org/doc/>, but couldn't find a network
26 > > > configuration manual there.
27 >
28 > > > Would somebody give me a pointer, please? Thanks!
29 >
30 > > Where are your DNS-server, and how does your routes look like?
31 > > I'd like to see your /etc/resolv.conf aswell. :-)
32 >
33 > /etc/resolv.conf:
34 > #########################################################################
35 > # Generated by dhcpcd for interface eth0
36 > search Speedport_W_700V
37 > nameserver 192.168.2.1
38 > #########################################################################
39 > [translation: A router/DSL modem (called "Speedport") at local address
40 > 192.168.2.1.]
41 >
42 > I do # route (as root), and get this:
43 > #########################################################################
44 > Kernel IP routing table
45 > Destination Gateway Genmask Flags Metric Ref Use Iface
46 > 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
47 > link-local * 255.255.0.0 U 0 0 0 eth0
48 > loopback * 255.0.0.0 U 0 0 0 lo
49 > default speedport.ip 0.0.0.0 UG 0 0 0 eth0
50 > #########################################################################
51 >
52 > Er, where is my DNS-server? That's the entry in resolv.conf, isn't it,
53 > i.e. the router at 192.168.2.1?
54 >