avahi-resolve-host-name
Resolve one or more mDNS/DNS host name(s) to IP address(es) (and vice versa) using the Avahi daemon
see also :
avahi-publish-address - avahi-daemon
Synopsis
avahi-resolve
--name host-name ...
avahi-resolve-host-name
host-name ...
avahi-resolve
--address address ...
avahi-resolve-address
address ...
add an example, a script, a trick and tips
examples
source
local output=$( avahi-resolve-host-name -6 $bonjour_hostname )
if [ ! -z
"$output" ]
; then
echo "Found host:
$output"
description
Resolve one or
more mDNS/DNS host name(s) to IP address(es) (and vice
versa) using the Avahi daemon.
options
When passing
-n, specify one or more fully qualified mDNS/DNS host
name(s) (e.g. "foo.local") to resolve into IP
addresses on the command line. When passing -a, specify one
or more IP address to resolve into host names.
avahi-resolve-host-name
is equivalent to avahi-resolve --name.
avahi-resolve-address
is equivalent to avahi-resolve --address.
-n | --name
Translate one or more fully
qualified host names into addresses.
-a | --address
Translate one or more addresses
into fully qualified host names.
-v | --verbose
Enable verbose mode.
-6
When resolving a host name, look for IPv6 addresses
exclusively.
-4
When resolving a host name, look for IPv4 addresses
exclusively.
-h | --help
Show help.
-V | --version
Show version information.
comments
This man page was written using xml2man(1) by Oliver
Kurth.
see also
avahi-publish-address ,
avahi-daemon
authors
The Avahi
Developers <avahi (at) lists (dot) freedesktop (dot)
org>; Avahi is available from
http://avahi.org/