ypbind(8)

ypbind8

Create and maintain a binding to a yp server

Usage

ypbind [-insecure] [-ypset] [-ypsetme]

Overview

ypbind finds the server for a particular YP domain and stores information about it in a “binding file”. This binding information includes the IP address of the server associated with that particular domain and which port the server is using. This information is stored in the directory /var/yp/binding in a file named with the convention DOMAINNAME.version. (The YP system only supplies information on version 2.)

When ypbind starts the primary domain (or gets the first request for a new domain), it checks if a file for the domain in question exists in the directory /etc/yp/ (i.e., /etc/yp/DOMAINNAME). If such a file exists, it will list the hosts which ypbind should restrict its server search to. Otherwise, ypbind assumes it will need to use broadcasts to find a valid server. Using either of these techniques, ypbind will search for a server willing to serve maps for the client's domain. Once a binding is established, ypbind maintains this binding by periodically communicating with the server to which it is bound. If the binding is somehow lost, e.g by server reboot, ypbind marks the domain as unbound and attempts to re-establish the binding. When the binding is once again successful, ypbind marks the domain as bound and resumes its periodic check.

The options are as follows:

-insecure

Permit binding to a ypserv(8) on a non-reserved port. This is needed if receiving maps from SunOS 3.x or Ultrix.

-ypset

ypset(8) may be used to change the server to which a domain is bound.

-ypsetme

ypset(8) may be used only from this machine to change the server to which a domain is bound.

The -ypset and -ypsetme options are dangerous and should be avoided. For greatest security, the use of a server list in /etc/yp/DOMAINNAME is recommended. The file should contain a list of valid YP server hostnames, with one hostname per line. The comment character is #.

Files

/var/yp/binding/DOMAINNAME.version - binding file for domainname /etc/yp/DOMAINNAME - server list for this particular domain

Releases

61 releases since OpenBSD 2.1; the text changed 16 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
  8. 3.0–3.2
  9. 3.3
  10. 3.4–4.0
  11. 4.1
  12. 4.2–4.3
  13. 4.4–4.5
  14. 4.6–5.6
  15. 5.7–6.0
  16. 6.1–6.3
  17. 6.4–8.0

-insecure since OpenBSD 2.2.

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.