Since commit 3f8b44be0a ("resolv: Remove support for RES_USE_INET6 and the inet6 option"), res_use_inet6 () always evaluates to false.
3f8b44be0a