why dig (tcp) is much faster than wget (gethostbyname?) ?

Juan Orti Alcaine juan.orti at miceliux.com
Mon Nov 4 07:51:12 UTC 2013


El 2013-11-04 08:08, baobeileaf escribió:

> I've read the sourcecode of wget. Maybe the difference comes from
> gethostbyname.
> Anyone can help me? or tell me where's the sourcecode of
> gethostbyname.
> Much Thx.

I don't understand what are you trying to do.
dig only do a DNS query, and wget a DNS query + TCP handshake + HTTP 
conversation.


More information about the kde mailing list