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.
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
And that you use stable DNS servers (/etc/resolv.conf).
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.
- 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
Try adding a default route:
route add default gw 192.168.0.1
this is a default route:
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
but i've also tryed with a default route named default and i've got same performance
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?)
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)
:: / my web presence
You mean dnsmasq?
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.
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
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...
:: / my web presence
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?