Fresh Minimal Debian Install, Slow Internet Performance?
I used a netinst CD to install Debian Lenny. I manually installed everything and even before I got to installing X I noticed that apt-get was taking a long time to "connect" to anything. Upon making a connection everything seemed to flow by very fast (on my T1 connection).
Now that I have everything installed to my liking, Mozilla spends a great deal of time at the "looking up (dns)" stage (in the status bar.) After that stage it flows by pretty quick and the page is displayed. Also, pictures take up to a couple minutes to load whereas they are typically instant. I dual boot Windows Vista on this machine and I have no internet speed problems in Vista, I even use Mozilla in Vista to compare. I now have a laptop (Vista, Mozilla) running next to this machine (Debian, Mozilla) and the same exact page takes up to several seconds or maybe a couple minutes to finish whereas my laptop (Vista) is done almost instantly. Code:
viper@viper:~$ ping www.chase.com Code:
viper:/home/viper# tracert www.chase.com I an eth0 and eth1, I am only using eth1 currently. I have an nVidia nForce 570 SLI MCP and I'm using the ethernet on the mainboard, no PCI cards. During the Debian install everything seemed ok... it detected my ethernet interfaces obviously and I was able to flag them as DHCP without any problems. |
All the evidence suggests that you have a name resolution problem (a DNS problem).
probably the most sensible tool for looking at that is dig; it would be interesting to see whether you have a very slow initial lookup followed by fast repeats, or not. either (probably)
|
Quote:
If I visit a site for the first time in a single X session, it takes awhile to look up the DNS. But if I click on links that lead to different pages on the same DNS/IP it's much faster, although still not as fast as I was hoping for. I'll have to check my DNS settings when I get home, but I have it set up to look at 3 DNS servers: 192.168.2.1 (local router), and 2 DNS servers that auto-populated from my ISP. Is there a recommended way of dealing with this issue? Should I have a localhost DNS service running? |
How do I look at my Debian network settings? I dont see anything in XFCE, how about the terminal?
|
Debian has all its network configuration in /etc/network/interfaces.
Another thing to look at is what version of IP is being used; the world is still plagued by machines which only understand IPv4 and if your name resolver is sending out IPv6 requests then falling back to sending out IPv4 requests when it doesn't get a response, that can really slow things down. |
Ok so I did some digging and research on configuring Debian's networking and now I'm more confused than when I started.
I'm going to reinstall Debian tonight and hope and pray that fixes the issue, although I'm sure it won't because I've reinstalled Debian a few times now... I don't know where to turn to get my DNS settings fixed. I've looked at /etc/hosts, /etc/resolv.conf, /etc/network/interfaces, and I don't understand which file lists the actual DNS servers to reference. |
Don't reinstall Debian, you're wasting your time because that won't fix anything.
/etc/hosts is a deprecated but often necessary file; it contains the hostname:IP address of a number of hosts which you may need to know before you have DNS and so on fully set up. On home computers it would typically be empty. /etc/resolv.conf contains the IP address for nameservers which the resolver will use So what is in your /etc/resolv.conf file and what is in your /etc/interfaces file? What is your network setup like; are you getting a dynamic IP from a router/modem or are you using a static IP? |
Quote:
Code:
# /etc/resolv.conf Code:
# /etc/interfaces I reinstalled Debian and instead of going for a clean, slim install I chose the bloated "Desktop Environment" option in tasksel... No change, except while logged into Gnome I can visit System->Administration->Network and see that my DNS tab has the following: Code:
192.168.2.1 Code:
Search Domains: I hope that's enough information for you. I look forward to fixing this issue once and for all so I can go back to a clean Debian install. I'm still a Linux noob, but I like my computers squeaky clean! |
Not sure why you have done what you have done; seeing dig results would be nice. You need to try a website that you haven't used recently, and do it twice.
Are you running anything that might cache dns lookups (dns/bind/named, dnsmasq, maradns, etc, etc)? Also check nsswitch. And the advice about not running both ipv6 and ipv4 was good. Quote:
Quote:
Quote:
I once had an ISP that did this kind of idiocy (and they were cr*p, although those things may or may not be connected);
Is the router also set up to use the 24.93.41's? Don't, by the way, assume that your your router's name cache can contain many entries; it may be very few indeed. So, if your router is set up to use a slow or non-responding nameserver, this would be an outcome. Equally, if the router doesn't respond for some reason, you'll wait for the router before trying anything else and that would make things slow. |
No need to get snippy with me.
I reinstalled Debian because my first install was a very clean one. I thought maybe if I selected "Desktop Environment" in tasksel, I would get a service or something that helps with DNS. My DNS has been a little faster since the reinstall but still unacceptable, especially compared to my Vista partition. How do I check to see if any of the mentioned services are running? And how do I check to see if IPv6 and IPv4 are running concurrently? How do I check nsswitch? I'm not sure why you feel the need to talk about my ISP's "stupidity" in dealing with DNS servers. The Internet works exceptionally fast. And since my internet works exceptionally fast in Windows, I somehow doubt my router is doing something wrong. But should that be the case, can you tell me how I can verify this? I'm using a Belkin router. Code:
viper@viper:~$ dig Code:
viper@viper:~$ dig www.ameriprise.com Code:
viper@viper:~$ dig www.ameriprise.com |
Hi,
I had the same issue when i swithed to "experimental" using kde4.1 and konqueror. Also note that in my experience, firefox seems faster than konqueror, but that is a different debate. This worked for me, but it may not for you... First, edit your hostname file (/etc/hostname) using vi or whatever you like. it probably reads: yourhostname change it to: yourhostname.localdomain Now change your hosts file (/etc/hosts) The 2 top lines will be : 127.0.0.1 localhost 127.0.1.1 yourhostname.localdomain yourhostname remove the 2nd line (127.0.1.1) and then add the other entries to the first line (127.0.0.1) so you should end up with 1 line that reads: 127.0.0.1 localhost yourhostname.localdomain yourhostname then reboot and let me know! Lee. |
This:
viper@viper:~$ ping www.chase.com PING www.chase.com (159.53.64.105) 56(84) bytes of data. --- www.chase.com ping statistics --- 392 packets transmitted, 0 received, 100% packet loss, time 391095ms pretty much tells me that your problem has nothing to do with DNS. If it did, it would not have gotten 100% packet loss. You either have an issue with the built in card, or the wire. How about trying a traceroute -n? |
In addition to alex's suggestion of "traceroute -n" could you give us the output of:
Code:
ping -c5 -w10000 google.com Code:
/sbin/ifconfig -a |
All times are GMT -5. The time now is 09:31 AM. |