[Cialug] Inconsistent consistently long DNS lookup times

Colin Burnett cmlburnett at gmail.com
Tue Mar 9 21:40:49 CST 2010


What I've discovered thus far is that ping uses gethostbyname(3) and
wget uses getaddrinfo(3).  I think it's tied to IPv6 lookup.  Doing a
`wget --inet4-only http://www.google.com` yields immediate results
then doing it without --inet4-only yields the 5 second delay (it's
clearly not being cached).

ifconfig shows ipv4 & ipv6 addresses.  Is there a way to disable ipv6
support in gentoo without going through the whole recompiling the
kernel without it?  Outright deleting the ipv6 addresses on eth0 & lo
using ifconfig doesn't have the hoped/desired effect.


Colin


More information about the Cialug mailing list