add res_init() to update resolv.conf changes