On Fri, 25 Jul 2003 13:37:28 -0700, Mica wrote:
> <snip>
>> > I have a number of PCs connected to the internet via DSL router. They
>> > are all set up with static addresses in the 192.168.0.0 network with
>> > the router as the gateway.
> <snip>
>
> Can you check the route table ? is the detault gateway configured
> properly ?
>
> Also, using TCPdump or Ethereal, you can see if there are lots of
> broadcasts or ARP lookups.
The routing table is OK or ping, Konqueror, Netscape, and so on wouldn't
work at all. The only problem is the great slowness with some command line
apps. I suspect this has something to do with libc6: I can see ping and
fetchmail use libresolv and their lookups are fast as they should be,
while links, lynx, w3m, apt-get etc don't.
I tried doing a "strace telnet mysite.com 80" and I noticed it stops here
for quite a long time:
munmap(0x40012000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=43577, ...}) = 0
old_mmap(NULL, 43577, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40012000
close(3) = 0
open("/lib/libnss_dns.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0L\ 16\0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=12828, ...}) = 0
old_mmap(NULL, 15732, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40249000
mprotect(0x4024c000, 3444, PROT_NONE) = 0
old_mmap(0x4024c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x4024c000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0(( \0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=56652, ...}) = 0
old_mmap(NULL, 65412, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4024d000
mprotect(0x4025a000, 12164, PROT_NONE) = 0
old_mmap(0x4025a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x4025a000
old_mmap(0x4025b000, 8068, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4025b000
close(3) = 0
munmap(0x40012000, 43577) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("212.216.172.62")}, 28) = 0
send(3, "\\\306\1\0\0\1\0\0\0\0\0\0\txxxxxxx\2it\0\0\34\0\ 1", 30, 0) = 30
gettimeofday({1059210551, 758420}, NULL) = 0
poll(
right after the "poll", waiting 3-4 secs. After many slow "polls"
poll([{fd=3, events=POLLIN}], 1, 5000) = 0
the application goes on, gets the name right and connects to the site.
What could be?
S