better resolv.conf handling