fix resolve with IPv6