FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-12-2008, 09:18 PM
Allan Gottlieb
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

At Fri, 12 Sep 2008 20:59:49 +0000 Alan Mackenzie <acm@muc.de> 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 Ref Use Iface
> 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
> link-local * 255.255.0.0 U 0 0 0 eth0
> loopback * 255.0.0.0 U 0 0 0 lo
> default speedport.ip 0.0.0.0 UG 0 0 0 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
 
Old 09-13-2008, 01:16 AM
deface
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

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).
 
Old 09-13-2008, 11:38 AM
Alan McKinnon
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

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
 
Old 09-13-2008, 01:59 PM
Stroller
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

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
0 0 eth0
link-local * 255.255.0.0 U 0
0 0 eth0
loopback * 255.0.0.0 U 0
0 0 lo
default speedport.ip 0.0.0.0 UG 0
0 0 eth0
################################################## ####################
###


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


Stroller.
 
Old 09-13-2008, 02:11 PM
Stroller
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

On 12 Sep 2008, at 23:43, Alan Mackenzie wrote:

...
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."


This is unrelated.

In Dyndyns the internet looks up you!
http://www.dyndns.org


, 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"...


The "Primärer DNS-Server" and "Sekundärer DNS-Server" are surely
issued dynamically by the ISP at the same time they issue the router
its IP addy and are probably shown on the router's status page.
Sometimes there's an "advanced" status page or a "more information"
link on the router's webpage.


Flag down a passing local with the words "'scuse me, Hans!" and get
him to translate pages 70 / 74 (depending on which way you count) of
the manual at <http://www.t-online.de/t-home/ths/bedienungsanleitung/
Speedport_W_700V_LBA_060317.pdf>.


Stroller.
 
Old 09-13-2008, 03:41 PM
Harry Putnam
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

Alan Mackenzie <acm@muc.de> writes:

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

Is the sarge system pointed at the same router for default route?

Show first line of /etc/hosts

Show Sarge system /etc/resolv.conf and first line of /etc/hosts

Surely your router has a `status' screen. It should show you current
IP and DNS servers.

Otherwise hit this page
http://www.jtan.com/~reader/
to learn your outer IP address

With that you can learn the nameservers for a domain...

Sorry I can't remember which tool or arguments do this but it is
possible to lookup a domain name and be shown the nameservers that
serve that domain. Not sure if its nslookup, dig, whois or something
else but maybe some kind soul will post the command and arguments that
will retrieve that info.

Once you've ascertained that actual outer nameserver. Put that in
/etc/resolv.conf and see if it makes a difference.
 
Old 09-13-2008, 03:45 PM
Harry Putnam
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

Harry Putnam <reader@newsguy.com> writes:

> Otherwise hit this page
>
> to learn your outer IP address

Sorry I left out the final part of the address:

http://www.jtan.com/~reader/remote_addr.cgi
 
Old 09-13-2008, 04:38 PM
Neil Bothwick
 
Default Network configuration: looking up URLs is very slow; how can I fix this?

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.
 

Thread Tools




All times are GMT. The time now is 01:08 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org