added wdns_res_to_str(wdns_res res) function