update resolv & fix IPv6 support