Fixed to consider IPv6 nameservers and to also handle case where only IPv6 nameservers are specified.
Make it more portable and also fixed dorequest() and dns_ack6() to include IPv6 nameservers.
One more fix.
modified hloeung's glibc test
fixed warning in net.c, fixed missing define of NSCOUNT in dns.c