ypset(8)
π ypset β the yp(8) era's main character
okay so real talk: this is the manual page for ypset from the System Manager's Manual, and it's about binding ypbind to one specific NIS server. yes, NIS. yes, it's old. no, we're not being weird about it, it literally still works. π
β¨ NAME β¨
ypset β bind ypbind to a particular NIS server π«Ά
β¨ SYNOPSIS β¨
ypset [ -d domain ] [ -h hostname ] server
β¨ DESCRIPTION β¨
okay bestie, before anything else: for ypset to even be allowed to do its thing, ypbind has to be started with the -ypset or -ypsetme options. no flags, no consent, no ypset. go read ypbind(8) if you need the lore. π
so what does ypset actually do? it tells ypbind to get NIS services for the domain you specified from the ypserv(8) process running on server. that's it. that's the whole job. queen of being specific. π
π¦ the chaotic rebinding situation (iykyk)
now here's the messy part. if there are several hosts on your local net all supplying NIS services, ypbind can literally rebind to a different host while you're mid-way through checking whether your ypset even succeeded. like, you'll be standing there like ??? and the answer is: yeah. that's a thing.
for example, you can type:
example% ypset host1
example% ypwhich
host2
which can be confusing. π and no, you didn't do anything wrong.
this is a function of the NIS subsystem's whole attempt to always know a running NIS server at all times. it happens when host1 doesn't respond to ypbind because it's not running ypserv (or it's overloaded, poor thing π₯Ί), and then host2, which is running ypserv, snatches the binding instead. not malicious, just NIS being NIS.
πΈ about server
server is the NIS server you're binding to, and it must be specified as a name or an IP address. periodt.
this will work only if the node has a current valid binding for the domain in question, and ypbind has been set to allow use of ypset. both conditions. no shortcuts.
and in most cases, server should be specified as an IP address. fr fr, just use the IP. π
β¨ OPTIONS β¨
-ddomain β specify a domain other than the default domain, aka the one returned bydomainname(8). β¨-hhostname β set the NIS binding on host hostname instead of on the local machine. yes, remote vibes. π«Ά
β¨ SEE ALSO β¨
domainname(8), ypbind(8), ypcat(8), ypmatch(1), ypserv(8), yppoll(8), ypwhich(1)
like, go read those too, they're all part of the same friend group. π
β¨ AUTHOR β¨
ypset is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@linux-nis.org>. king behavior, honestly. π
and that's the whole page bestie!! this one's from YP Tools 4.2.3, dated April 2010 β yeah, it's been iconic for a minute. stay bound, stay slay πβ¨
π¦ where this page comes from
- debian bookworm: yp-tools 4.2.3-3 Β· GPL-2.0-only
- debian trixie: yp-tools 4.2.3-4+b2 Β· GPL-2.0-only
- fedora 43: yp-tools 4.2.3-21.fc43 Β· GPL-2.0-only
- fedora 44: yp-tools 4.2.3-22.fc44 Β· GPL-2.0-only
- ubuntu jammy: yp-tools 4.2.3-3 Β· GPL-2.0-only
- ubuntu noble: yp-tools 4.2.3-4build1 Β· GPL-2.0-only
- ubuntu questing: yp-tools 4.2.3-4build1
- ubuntu resolute: yp-tools 4.2.3-6 Β· GPL-2.0-only
- ubuntu stonking: yp-tools 4.2.3-6build1 Β· GPL-2.0-only
- Copyright (C) 1998, 1999, 2001, 2002, 2007, 2010 Thorsten Kukuk
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms