5 second resolving delay
Your problem is described on http://udrepper.livejournal.com/20948.html, and is caused by a parallel lookup on both IPv4 and IPv6 which doesn't work together with some DNS servers and firewalls.
It can be fixed by adding "single-request" to the options in /etc/resolv.conf as the link above mentions.