You are not logged in.

#1 2004-04-27 22:15:03

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Very Long delays on internet connections

Hi,

I experience a long delay stablishing internet connections. I have no idea of what can it be. It happens in all machines I've installed arch.

Is this normal arch behaivour? If not, how can I fix it?

Delay times vary randomly.

thanks

Offline

#2 2004-04-27 22:29:16

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Very Long delays on internet connections

Check your /etc/hosts file and make sure you have your hostname set up to point to 127.0.0.1.

Also make sure you have your loopback device enabled.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#3 2004-04-28 00:33:45

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Very Long delays on internet connections

And that you use stable DNS servers (/etc/resolv.conf).

Offline

#4 2004-04-28 21:33:11

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Very Long delays on internet connections

this is my hosts file:

127.0.0.1               localhost.localdomain   localhost
127.0.0.1               cerdi.localdomain       cerdi

i have the lo device in rc.conf:

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0"
INTERFACES=(lo !eth0)

and it appears in the ifconfig devices lists

and my DNS servers are ok. The only other think i know is in relation with network is route command and network adapter modules. this is my route answer:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0

and there are different network adapters that run on machines I've installed arch:

8139too 3c59x acx_pci sis900

All computers run on a local network with an ADSL router:

3com 812
3com wireless 11g

No Idea of what other thinks have relation with the internet connection.

thanks smile

Offline

#5 2004-04-28 21:42:09

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Very Long delays on internet connections

NOTES:
- I have the eth0 device with ! becuase I use wlan0 device that i enable with a script in rc.local
- my computer name is cerdi

Offline

#6 2004-04-29 00:37:58

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: Very Long delays on internet connections

Try adding a default route:

route add default gw 192.168.0.1

Offline

#7 2004-04-29 08:32:39

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Very Long delays on internet connections

this is a default route:

0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0

wireless issues tongue

but i've also tryed with a default route named default and i've got same performance

Offline

#8 2004-04-29 16:12:55

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Very Long delays on internet connections

SOLVED:

Windows has optimitzations related to DNS resolving that made me think that my DNS servers were ok. I've changed my DNS servers and now performance is what it is expected to be.

I didn't give much importance to DNS because I though that once the program has resolved the server it works at IP level, but I hadn't really tried to work with IP to see what happened. Working with IPs performance was optimal, so the trouble was in DNS (and in a bad DNS management of linux?)

Offline

#9 2004-04-30 09:53:06

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Very Long delays on internet connections

I was actually thinking the same about my internet connection but I knew that it was something wrong with the DNS - the browsers displayed "Looking for ..." a long time.

I am thinking of running my own DNS server locally (for me and the local network) to cache the DNS entries, and send to the outside the queries for the unknown hosts.

Has anyone implemented this? Is it reliable?
What daemon do you recommend for this? (haven't looked very much in the named config files yet - there might be better alternatives)
(I saw one DNS server packed with a DHCP server - I don't remember the name - the combination seemed interesting, but I don't have so many computers to use DHCP, I use static IPs in LAN)

Offline

#10 2004-04-30 13:16:51

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Very Long delays on internet connections

You mean dnsmasq?

Offline

#11 2004-04-30 13:27:49

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Very Long delays on internet connections

Linux's DNS implementation does what it should do, resolving names. If you want caching then that should happen in the application or you should run a local DNS server like IceRAM said. It's common to use a DNS server of your ISP, and that's supposed to be fast...

To test your DNS server you can just ping some server, and see how long it takes to resolve the name.

Offline

#12 2004-04-30 20:43:24

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Very Long delays on internet connections

LB06 wrote:

You mean dnsmasq?

Yep, I think that is it. You do learn a lot about the posibilities of Linux just by looking over the new packages list smile

I also found some interesting links to help me reconfigure named daemon:
[1] http://www.stanford.edu/~riepel/dns/Caching.html
[2] http://www.tldp.org/HOWTO/DNS-HOWTO-3.html

There are 2 variants. Either I make it a full domain server (that will translate everything, checking with the main resolver sites) or a cached domain server that forwards requests to the ISP DNS.

I will go for the 2nd type, just because I don´t have a very large bandwith and accessing the main servers might take a while.
Besides this, I´m not having a server for many clients, I just want it to work for another one. In this situation, the DNS queries won´t be very diverse and most likely the DNS server will use the cache most. I might even consider changing the "do not update cache entry" time from 24h to more...

Offline

#13 2004-05-01 18:46:01

mr_ed
Member
From: Ottawa, ON, Canada
Registered: 2004-04-13
Posts: 72

Re: Very Long delays on internet connections

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

I've been having troubles, too, and so I did a route command, and that's what came up.  It took >5 seconds to come up, too.

I'm totally confused why that 192.168.1.0 is there because there's nothing on my network with that.

I have a router (192.168.1.1) giving my computer (192.168.1.101) a DHCP address.

My lo and eth0 are both up, I changed my /etc/hosts so that it has my hostname (and localhost) and have had every combination of hostname / hostname.domainname that I could think of. :cry:

I did some pings, and some domains came back right away, while others took 10 seconds to do so.

Any ideas out there?

Offline

Board footer

Powered by FluxBB