ypwhich(1)

ypwhich1

Return hostname of yp server or map master

Usage

ypwhich [-t] [-d domain] [[-h] host]

ypwhich [-t] [-d domain] [-h host] -m [mname]

ypwhich -x

Overview

ypwhich tells which YP server supplies YP services to a client, or which is the master for a map. If invoked without arguments, it gives the YP server for the local machine. If host is specified, that machine is queried to find out which YP server it is using.

The options are as follows:

-d domain

Specify a domain other than the default domain.

-h host

Specify which host to query.

-m [mname]

Find the master YP server for the named map. The host to query, if non-default, must be specified using the -h option. mname can be a map name or nickname. If mname is omitted, ypwhich will produce a list of available maps.

-t

Inhibit translation of map nicknames to their corresponding map names.

-x

Display the map nickname table.

Releases

61 releases since OpenBSD 2.1; the text changed 11 times.

  1. 2.1–2.2
  2. 2.3
  3. 2.4
  4. 2.5
  5. 2.6
  6. 2.7–2.8
  7. 2.9–3.2
  8. 3.3–4.1
  9. 4.2–4.3
  10. 4.4–5.6
  11. 5.7–6.4
  12. 6.5–8.0

-h since OpenBSD 2.3.

Authors

Theo de Raadt

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.