resolve
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
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
client= | resource | from .clients | Resolve on this client. | ||
fd= | resource | from .clients | Client name (as client=). | ||
storage= | resource | from .storages | Resolve on this storage. | ||
sd= | resource | from .storages | Storage name (as storage=). | ||
<hostname> | string | repeatable, positional | Host 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