Slow connections with cli tools on Debian squeeze

One of my debian servers was taking between 5-8 seconds just to resolve a domain name when using tools such as wget, curl or scp.

To fix this, simply add

options single-request

to your /etc/resolv.conf file.

This is a known issue and it has to do with ipv6/ipv4 in some configurations. It is not in the current man pages for resolv.conf but the change has been made upstream, it will be included soon.

Leave a Reply

Your email address will not be published. Required fields are marked *