Slow DNS (and host: connection timed out)

David Naylor naylor.b.david at gmail.com
Fri Feb 6 02:20:46 PST 2009


On Friday 06 February 2009 11:37:31 Wojciech Puchar wrote:
> > Proto Recv-Q Send-Q  Local Address          Foreign Address       (state)
> > tcp4       0      0 192.168.0.6.55429      63.245.209.93.80      
> > SYN_SENT tcp4       0      0 192.168.0.6.12337      74.125.77.147.80     
> >  SYN_SENT
> >
> > Firefox on Windows doesn't have this problem.
>
> it doesn't look like DNS problem as it's stuck on connecting to HTTP port
> (80).
>
>
> check out with ping if it's all fine with your netcard under FreeBSD

netcard works fine:
(from laptop, see 
http://lists.freebsd.org/pipermail/freebsd-questions/2009-February/192278.html  
for layout of network)
# ping -c 2000 -i 0.1 192.193.194.1
PING 192.193.194.1 (192.193.194.1): 56 data bytes
2000 packets transmitted, 1937 packets received, 3.1% packet loss
round-trip min/avg/max/stddev = 3.339/27.799/741.743/78.702 ms

The above was because only proxied (and socks) traffic is allowed beyond the 
ISP.  The point I was trying to make was (by the number of '.' before the 
first netstat line) that it takes the browser over 25 seconds before it even 
attempts the connection.  See below for when I have transparent proxying 
enabled (and the connection does go through).

# konqueror www.google.co.za &
[1] 4862
# sh -c 'while true; do echo -n .; netstat -np tcp; sleep 5; done'
........Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0 192.168.0.2.50707      74.125.77.99.80        ESTABLISHED
.Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0 192.168.0.2.64852      74.125.77.99.80        TIME_WAIT
tcp4       0      0 192.168.0.2.50707      74.125.77.99.80        TIME_WAIT

Note that in this case it takes 35 seconds before Konqueror attempts the 
connection.  

Regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090206/0abc6998/attachment.pgp


More information about the freebsd-questions mailing list