---
name: "ypset"
section: "8"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd"]
url: "https://new.carta.tech/ypset/8"
---

# ypset(8)

tell ypbind(8) which YP server process to use

## NAME

**ypset** – tell [ypbind(8)](/ypbind/8.md) which YP server process to use

## SYNOPSIS

**ypset** \[**-d** *domain*\] \[**-h** *host*\] *server*

## DESCRIPTION

**ypset** tells the [ypbind(8)](/ypbind/8.md) process on the current machine which YP server process to communicate with. If *server* is down or is not running a YP server process, it is not discovered until a YP client process attempts to access a YP map, at which time [ypbind(8)](/ypbind/8.md) tests the binding and takes appropriate action.

**ypset** is most useful for binding a YP client that is not on the same broadcast network as the closest YP server, but can also be used for debugging a local network's YP configuration, testing specific YP client programs, or binding to a specific server when there are many servers on the local network supplying YP maps.

The options are as follows:

- **-d** *domain*

  Use the YP domain *domain* instead of the default domain as returned by [domainname(1)](/domainname/1.md).

- **-h** *host*

  Set the YP binding on *host* instead of the local machine.

## SEE ALSO

[domainname(1)](/domainname/1.md), [ypcat(1)](/ypcat/1.md), [ypmatch(1)](/ypmatch/1.md), [ypwhich(1)](/ypwhich/1.md), [yp(8)](/yp/8.md), [ypbind(8)](/ypbind/8.md), [yppoll(8)](/yppoll/8.md)

## AUTHORS

Theo de Raadt
