Support res_* API of libresolv

It's still unclear to me if that library is still distributed or/and maintained but some application still use it either compiled in or shared. I can't find that library in a recent Debian system.