Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-13 Thread Alan McKinnon
On Saturday 13 September 2008 00:43:43 Alan Mackenzie wrote:
 rant mode
 Sorry, it's difficult.  My router, and its ~160 pages of doku are utter
 crap.  The configuration program (over a web browser ) explodes things in
 my face each time the mouse moves, and I can't even guess what the
 designer was smoking when he grouped the various items together.  It's
 impossible (for me, at least) to get a mental picture of what's going on.

You don't have to be an accessory to your router developer's dumbass idea of 
how to do name resolution. Just tell your work station what you want IT to 
use.

Do you know your ISPs name server? Try

dig a www.google.com @ip-of-isp-ns

If it works real quick, set that name server in resolv.conf and tell your 
local dhcp client to NOT overwrite resolv.conf



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-13 Thread Stroller


On 12 Sep 2008, at 21:59, Alan Mackenzie wrote:

...
/etc/resolv.conf:
## 
###

# Generated by dhcpcd for interface eth0
search Speedport_W_700V
nameserver 192.168.2.1
## 
###


I might remove the search line. That tells your computer to search  
for google.com.Speedport_W_700V if no IP address is found.



I do # route (as root), and get this:
## 
###

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref 
Use Iface
192.168.2.0 *   255.255.255.0   U 0   
00 eth0
link-local  *   255.255.0.0 U 0   
00 eth0
loopback*   255.0.0.0   U 0   
00 lo
default speedport.ip0.0.0.0 UG0   
00 eth0
## 
###


I'd also specify 192.168.2.1 as the default route explicitly, rather  
than by name.


Stroller.



Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-13 Thread Daniel Beecham
On Sat, 2008-09-13 at 14:59 +0100, Stroller wrote:
 On 12 Sep 2008, at 21:59, Alan Mackenzie wrote:
  ...
  I do # route (as root), and get this:
  ## 
  ###
  Kernel IP routing table
  Destination Gateway Genmask Flags Metric Ref 
  Use Iface
  192.168.2.0 *   255.255.255.0   U 0   
  00 eth0
  link-local  *   255.255.0.0 U 0   
  00 eth0
  loopback*   255.0.0.0   U 0   
  00 lo
  default speedport.ip0.0.0.0 UG0   
  00 eth0
  ## 
  ###
 
 I'd also specify 192.168.2.1 as the default route explicitly, rather  
 than by name.
 
 Stroller.
 

I think that route rDNS'es the host, and is not set.
I could be wrong though.

--
Daniel.




Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-13 Thread Neil Bothwick
On Sat, 13 Sep 2008 18:21:05 +0200, Daniel Beecham wrote:

 I think that route rDNS'es the host, and is not set.
 I could be wrong though.

It does, use route -n to prevent this.


-- 
Neil Bothwick

If it isn't broken, I can fix it.


signature.asc
Description: PGP signature


Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-12 Thread Daniel Beecham
On Fri, 2008-09-12 at 18:47 +, Alan Mackenzie wrote:
 Hi, Gentoo!
 
 I bought a new hard drive on Wednesday, and am seriously getting Gentoo
 installed (after doing a trial installation in July).
 
 However  looking up URL's is very, very slow.  This is most
 noticeable when running emerge.  It is very also noticeable running
 Firefox; the looking up is _much_ slower than on my existing Debian
 sarge system.
 
 Presumably, I need to configure some sort of DNS cache, or proxy, or
 whatever it might be called.  I've looked in
 http://www.gentoo.org/doc/, but couldn't find a network configuration
 manual there.
 
 Would somebody give me a pointer, please?  Thanks!
 

Where are your DNS-server, and how does your routes look like?
I'd like to see your /etc/resolv.conf aswell. :-)




Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-12 Thread Alan Mackenzie
Hi, Daniel,

On Fri, Sep 12, 2008 at 08:50:13PM +0200, Daniel Beecham wrote:

  However  looking up URL's is very, very slow.  This is most
  noticeable when running emerge.  It is very also noticeable running
  Firefox; the looking up is _much_ slower than on my existing Debian
  sarge system.

  Presumably, I need to configure some sort of DNS cache, or proxy, or
  whatever it might be called.  I've looked in
  http://www.gentoo.org/doc/, but couldn't find a network
  configuration manual there.

  Would somebody give me a pointer, please?  Thanks!

 Where are your DNS-server, and how does your routes look like?
 I'd like to see your /etc/resolv.conf aswell. :-)
 
/etc/resolv.conf:
#
# Generated by dhcpcd for interface eth0
search Speedport_W_700V
nameserver 192.168.2.1
#
[translation: A router/DSL modem (called Speedport) at local address
192.168.2.1.]

I do # route (as root), and get this:
#
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.2.0 *   255.255.255.0   U 0  00 eth0
link-local  *   255.255.0.0 U 0  00 eth0
loopback*   255.0.0.0   U 0  00 lo
default speedport.ip0.0.0.0 UG0  00 eth0
#

Er, where is my DNS-server?  That's the entry in resolv.conf, isn't it,
i.e. the router at 192.168.2.1?

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-12 Thread Allan Gottlieb
At Fri, 12 Sep 2008 20:59:49 + Alan Mackenzie [EMAIL PROTECTED] wrote:

 Hi, Daniel,

 On Fri, Sep 12, 2008 at 08:50:13PM +0200, Daniel Beecham wrote:

  However  looking up URL's is very, very slow.  This is most
  noticeable when running emerge.  It is very also noticeable running
  Firefox; the looking up is _much_ slower than on my existing Debian
  sarge system.

  Presumably, I need to configure some sort of DNS cache, or proxy, or
  whatever it might be called.  I've looked in
  http://www.gentoo.org/doc/, but couldn't find a network
  configuration manual there.

  Would somebody give me a pointer, please?  Thanks!

 Where are your DNS-server, and how does your routes look like?
 I'd like to see your /etc/resolv.conf aswell. :-)
  
 /etc/resolv.conf:
 #
 # Generated by dhcpcd for interface eth0
 search Speedport_W_700V
 nameserver 192.168.2.1
 #
 [translation: A router/DSL modem (called Speedport) at local address
 192.168.2.1.]

 I do # route (as root), and get this:
 #
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse Iface
 192.168.2.0 *   255.255.255.0   U 0  00 eth0
 link-local  *   255.255.0.0 U 0  00 eth0
 loopback*   255.0.0.0   U 0  00 lo
 default speedport.ip0.0.0.0 UG0  00 eth0
 #

 Er, where is my DNS-server?  That's the entry in resolv.conf, isn't it,
 i.e. the router at 192.168.2.1?

That is the dns for your local lan.  You need the higher level dsn
server, the one your router uses.  Log into your router via a browser
and find out.

allan



Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-12 Thread Alan Mackenzie
On Fri, Sep 12, 2008 at 05:18:16PM -0400, Allan Gottlieb wrote:
 At Fri, 12 Sep 2008 20:59:49 + Alan Mackenzie [EMAIL PROTECTED] wrote:

  Hi, Daniel,

  On Fri, Sep 12, 2008 at 08:50:13PM +0200, Daniel Beecham wrote:

   However  looking up URL's is very, very slow.  This is most
   noticeable when running emerge.  It is very also noticeable running
   Firefox; the looking up is _much_ slower than on my existing Debian
   sarge system.

   Presumably, I need to configure some sort of DNS cache, or proxy, or
   whatever it might be called.  I've looked in
   http://www.gentoo.org/doc/, but couldn't find a network
   configuration manual there.

   Would somebody give me a pointer, please?  Thanks!

  Where are your DNS-server, and how does your routes look like?
  I'd like to see your /etc/resolv.conf aswell. :-)

  /etc/resolv.conf:
  #
  # Generated by dhcpcd for interface eth0
  search Speedport_W_700V
  nameserver 192.168.2.1
  #
  [translation: A router/DSL modem (called Speedport) at local address
  192.168.2.1.]

  I do # route (as root), and get this:
  #
  Kernel IP routing table
  Destination Gateway Genmask Flags Metric RefUse 
  Iface
  192.168.2.0 *   255.255.255.0   U 0  00 eth0
  link-local  *   255.255.0.0 U 0  00 eth0
  loopback*   255.0.0.0   U 0  00 lo
  default speedport.ip0.0.0.0 UG0  00 eth0
  #

  Er, where is my DNS-server?  That's the entry in resolv.conf, isn't it,
  i.e. the router at 192.168.2.1?

 That is the dns for your local lan.  You need the higher level dsn
 server, the one your router uses.  Log into your router via a browser
 and find out.

rant mode
Sorry, it's difficult.  My router, and its ~160 pages of doku are utter
crap.  The configuration program (over a web browser ) explodes things in
my face each time the mouse moves, and I can't even guess what the
designer was smoking when he grouped the various items together.  It's
impossible (for me, at least) to get a mental picture of what's going on.

Hidden in the middle of the dumbed-down doku, it says that the router
must use the DynDNS service of some provider, e.g. URL 1 or URL 2.
Details of how to use a particular service can be found on the
corresponding web page., the sort of thing that makes me scream.  And
that's it.  There is nothing there to say the address of the actual name
server in use is secret, or how you actually find it.
/rant mode

Anyhow, it is surely not the router setup which is the problem - name
lookup works fine under my Debian sarge system.

 allan

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-12 Thread Daniel Beecham
As long as speedport.ip is 192.168.2.1, the routes are okay, and the
resolv-file is okay aswell.

It's most likely either DNS-cacheer, i.e. your own router, or the
DNS-server your ISP is giving you beeing the bottleneck.

You could go ahead and dig(1) both those servers and perhaps time(1)
that. If you can find any logs in your router that would help aswell.

--
Daniel.

On Fri, 2008-09-12 at 20:59 +, Alan Mackenzie wrote:
 Hi, Daniel,
 
 On Fri, Sep 12, 2008 at 08:50:13PM +0200, Daniel Beecham wrote:
 
   However  looking up URL's is very, very slow.  This is most
   noticeable when running emerge.  It is very also noticeable running
   Firefox; the looking up is _much_ slower than on my existing Debian
   sarge system.
 
   Presumably, I need to configure some sort of DNS cache, or proxy, or
   whatever it might be called.  I've looked in
   http://www.gentoo.org/doc/, but couldn't find a network
   configuration manual there.
 
   Would somebody give me a pointer, please?  Thanks!
 
  Where are your DNS-server, and how does your routes look like?
  I'd like to see your /etc/resolv.conf aswell. :-)
  
 /etc/resolv.conf:
 #
 # Generated by dhcpcd for interface eth0
 search Speedport_W_700V
 nameserver 192.168.2.1
 #
 [translation: A router/DSL modem (called Speedport) at local address
 192.168.2.1.]
 
 I do # route (as root), and get this:
 #
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse Iface
 192.168.2.0 *   255.255.255.0   U 0  00 eth0
 link-local  *   255.255.0.0 U 0  00 eth0
 loopback*   255.0.0.0   U 0  00 lo
 default speedport.ip0.0.0.0 UG0  00 eth0
 #
 
 Er, where is my DNS-server?  That's the entry in resolv.conf, isn't it,
 i.e. the router at 192.168.2.1?
 




Re: [gentoo-user] Network configuration: looking up URLs is very slow; how can I fix this?

2008-09-12 Thread deface

I use opendns.com - take a peep at it, very highly recommended.

deface


On Sep 12, 2008, at 1:47 PM, Alan Mackenzie wrote:


Hi, Gentoo!

I bought a new hard drive on Wednesday, and am seriously getting  
Gentoo

installed (after doing a trial installation in July).

However  looking up URL's is very, very slow.  This is most
noticeable when running emerge.  It is very also noticeable running
Firefox; the looking up is _much_ slower than on my existing Debian
sarge system.

Presumably, I need to configure some sort of DNS cache, or proxy, or
whatever it might be called.  I've looked in
http://www.gentoo.org/doc/, but couldn't find a network  
configuration

manual there.

Would somebody give me a pointer, please?  Thanks!

--
Alan Mackenzie (Nuremberg, Germany).