LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

avahi-resolve-host-name

Resolve hostnames to IP addresses via mDNS

TLDR

This command is an alias of avahi-resolve --name.Resolve a hostname to an IP address
$ avahi-resolve-host-name [hostname.local]
copy
Resolve to an IPv4 address only
$ avahi-resolve-host-name -4 [hostname.local]
copy
Resolve to an IPv6 address only
$ avahi-resolve-host-name -6 [hostname.local]
copy

SYNOPSIS

avahi-resolve-host-name [OPTIONS] hostname ...

DESCRIPTION

avahi-resolve-host-name resolves hostnames to IP addresses using mDNS/DNS-SD via the Avahi daemon. It is equivalent to running avahi-resolve with the --name flag.

INSTALL

sudo apt install avahi-utils
copy
sudo dnf install avahi-tools
copy
sudo apk add avahi-tools
copy
sudo zypper install avahi-utils
copy

SEE ALSO

RESOURCES

Copied to clipboard
Kai