In order to avoid the syscall, could this first try `from_str` into an `IpAddr`? If that succeeds, then we know we don't need to go call `getaddrinfo`.