I tested on mac and res_ninit() works fine.