Linux Commands Examples

A great documentation place for Linux commands

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

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
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/

How can this site be more helpful to YOU ?


give  feedback