Hi,
There is a question confused me.
I have a router that running linux+unlibc, there is a question that, every
time an application calls gethostbyname will block 30 seconds when network is
disconnect or dns server is unreachable.I also use dnsmasq as dns proxy but the
result is not so good.
I decide to re-compile uclibc. since I don't know compilation option of
uclibc, I use default by make menuconfig .after startup router many application
can't run.
Maybe I need re-compile all libs and apps. but it is a very big work.
Then I only re-compile resolv.c in uclibc to generate a new lib named
libmyres.so(also I modified some source code. for example I change APT
gethostby name as gethostbyname_my,timeout=1,attempts=1),then I
re-compile/re-link my an appication(also change API gethost to
gethostbyname_my), then run it. the result is my expected, gethostbtynaem is
blocked only 1 second.
So I don't know what risk bing in when I did above.
Thanks.
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc