1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 13:37:48 +00:00

hostname: use dns-lookup crate to get the network address(es) of the host

- on OpenBSD and FreeBSD, unable to get the network address(es) of the host with DNS request for
  hostname + ":1"
- use dns-lookup crate for this request with lookup_host function

Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
Laurent Cheylus 2024-07-07 19:54:02 +02:00 committed by Sylvestre Ledru
parent aac09b8a8f
commit 6e236a4a72
4 changed files with 29 additions and 8 deletions

1
Cargo.lock generated
View file

@ -2814,6 +2814,7 @@ name = "uu_hostname"
version = "0.0.27"
dependencies = [
"clap",
"dns-lookup",
"hostname",
"uucore",
"windows-sys 0.48.0",