When I download any document from internet using wget. It shows maximum amount of time consumed in getaddrinfo().
I know getaddrinfo() used for DNS lookup.
Tell me any method, so that this time is reduced to negligible, just like making any table for host name and their corresponding IP address, so that wget can get coresponding IP address very quickly.
Question
Tell me also, how can I implement this. Thanks in advance. Looking for your kind response.
Command, I use
ltrace -c -o log_ltrace_wget_new1.txt wget http://www.ada.gov/briefs/kovacsbr.doc
Output
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
67.11 7.070607 336695 21 select
19.67 2.071956 5739 361 strlen
10.59 1.115199 1115199 1 getaddrinfo
0.32 0.033705 298 113 fgets
0.27 0.028261 197 143 malloc
.....
.....
.....