resolve

Bareos

Resolve a hostname.

Synopsis

resolve [client=<client>] [fd=<fd>] [storage=<storage>] [sd=<sd>]
        [<hostname> ...]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Shows the IP addresses a host name resolves to. Without client= or storage= the Director resolves the name itself; with client= (or fd=) the File Daemon resolves it, with storage= the Storage Daemon, and the Director prints their answer. This helps to locate name resolution problems on either side of a connection. Several host names may be given; nothing is changed.

When the Director resolves itself and a name fails, the command stops there and later names are not tried. Without any argument there is no output.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
client=resourcefrom .clientsResolve on this client.
fd=resourcefrom .clientsClient name (as client=).
storage=resourcefrom .storagesResolve on this storage.
sd=resourcefrom .storagesStorage name (as storage=).
<hostname>stringrepeatable, positionalHost name to resolve.

Examples

Addresses as seen by the Director:

resolve backup.example.com

How the File Daemon resolves the Director host:

resolve client=bareos-fd backup.example.com

See also

Command reference