4

My machine is taking 10 seconds to establish a connection. Once the connection is established, it is up to speed and works correctly. But if I for example ping www.google.com, it takes 5 seconds for

PING www.l.google.com (72.14.247.147) 56(84) bytes of data.

to show up, and 5 more seconds for each

64 bytes from ag-in-f147.google.com (72.14.247.147): icmp_seq=1 ttl=243 time=100 ms

to show up.

My only clue is that I recently disconnected my computer from the Ethernet cable and rebooted it.

I use a static IP address and my router is configured correctly. My computer is the only one connected to the router that has this problem.

What configuration can I check to solve this problem?

andrewrk
  • 283

2 Answers2

15

DNS.

Make sure that your reverse DNS is working properly. You can verify this by typing "ping -n www.google.com". Immediate responses.

Matt Simmons
  • 20,584
0

Yes, a DNS problem. The solution was to edit /etc/resolv.conf.

The primary server was 192.168.0.1 when it should have been 192.168.1.1. Fixed that and the problem went away immediately.

The problem was caused by upgrading with aptitude full-upgrade, which overwrote the configuration file. Should probably report this to Debian Squeeze developers.

andrewrk
  • 283