You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On FreeBSD, MacOS and OpenBSD, hostname -i does not work:
$ target/debug/coreutils hostname -i
hostname: failed to resolve socket addresses: failed to lookup address information: no address associated with name
In src/uu/hostname/src/hostname.rs, there is a comment that proposes to use dns-lookup crate to do this DNS request (hostname -> IP addrs).
I have a local branch using dns-lookup crate for hostname -i => works on OpenBSD :)
On FreeBSD, MacOS and OpenBSD,
hostname -i
does not work:In
src/uu/hostname/src/hostname.rs
, there is a comment that proposes to use dns-lookup crate to do this DNS request (hostname -> IP addrs).I have a local branch using
dns-lookup
crate forhostname -i
=> works on OpenBSD :)Thus, I propose to use
dns-lookup
forhostname
tool and to push a PR for it. Agree ?The text was updated successfully, but these errors were encountered: