Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have tried to wget a page with windows/mac, and the response is instant while the the Linux application delays for 4 seconds before it shows the response.

The command I ran is:

wget http://192.168.0.135/test.cgi?cmd= -O test.txt

The result in Ubuntu:

--2011-03-04 14:21:17--  http://192.168.0.135/test.cgi?cmd=
Connecting to 192.168.0.135:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `test.txt'

[ <=>                                   ] 17          --.-K/s   in 0s      

2011-03-04 14:21:22 (1.88 MB/s) - `test.txt' saved [17]

Running the command in Mac yields:

--2011-03-04 14:22:33--  http://192.168.0.135/test.cgi?cmd=
Connecting to 192.168.0.135:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `test.txt'

[ <=>                                   ] 17          --.-K/s   in 0s      

2011-03-04 14:22:33 (755 KB/s) - `test.txt' saved [17]

I believe it may related to some setting in the network configuration, such as packet size, window frame, but I have no idea how to set this.

The output of uname -a (kernel version):

Linux linux017 2.6.35-25-generic-pae #44-Ubuntu SMP Fri Jan 21 19:01:46 UTC 2011 i686 GNU/Linux

The version of wget (wget --version) is: GNU Wget 1.12

share|improve this question
1  
Can you provide the link you are trying? –  belacqua Mar 4 '11 at 4:14
1  
As a point of reference I don't experience any delay with wget on Ubuntu 10.10 retrieving from an Apache server with Comcast cable. –  fragos Mar 4 '11 at 5:38
    
Can you output the version part (e.g. 1.12) from wget --version on your systems? –  Lekensteyn Mar 4 '11 at 8:38
    
Possibly a DNS issue. Is your configuration for DNS the same on Mac and Ubuntu? –  Reuben Swartz Mar 4 '11 at 13:43
    
@Lekensteyn:Did this originally have a domain name instead of an IP? If he's actually using IP addresses, it's definitely not a DNS issue. –  Azendale May 27 '11 at 1:05

2 Answers 2

On Linux in general and Ubuntu in particular, I often have to wait for an IPv6 DNS query to time out before it will look for IPv4 addresses.

share|improve this answer
    
If he's using an actual IP address, 192.168.0.135, there is no DNS lookup involved. –  Azendale May 27 '11 at 1:07

Try to use it with IP address instead of domain name. If it's instant - then your local DNS server might be overloaded (while windows cache it). You may try GOogle's one(8.8.8.8), or install pdnsd - local DNS cache.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.