1 .\" $NetBSD: ypbind.8,v 1.17 2005/12/03 11:24:02 wiz Exp $
3 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Jason R. Thorpe.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd create and maintain a binding to a NIS server
44 finds the server for a particular
46 domain and stores information about it
49 This binding information includes the IP address of the server associated with
50 that particular domain and which port the server is using.
51 This information is stored in the directory
53 in a file named with the convention
54 .Pa \*[Lt]domain\*[Gt].version ,
57 is the relevant domain.
60 system only supplies information on version 2.
64 is started without the
68 steps through the list of
71 .Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers
72 and contacts each in turn attempting to bind to that server.
73 It is strongly recommended that these hosts are in the local
74 hosts file, and that hosts are looked up in local files before
84 .Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers
87 broadcasts to find a process willing to serve maps for the
90 Once a binding is established,
92 maintains this binding by periodically communicating with the server to which
94 If the binding is somehow lost, e.g by server reboot,
96 marks the domain as unbound and attempts to re-establish the binding.
97 When the binding is once again successful,
99 marks the domain as bound and resumes its periodic check.
101 The options are as follows:
102 .Bl -tag -width "-broadcast"
104 sends a broadcast requesting a
106 server to which to bind.
108 do not require that the server is running on a reserved port.
109 This may be necessary when connecting to
117 may be used to change the server to which a domain is bound.
120 may be used only from this machine to change the server
121 to which a domain is bound.
129 options are inherently insecure and should be avoided.
131 .Pa /var/yp/binding/\*[Lt]domain\*[Gt].version
132 - binding file for \*[Lt]domain\*[Gt].
133 .Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers
134 - explicit list of servers to bind to for \*[Lt]domain\*[Gt].
152 was originally implemented by Theo de Raadt.
153 The ypservers support was implemented by Luke Mewburn.