ypwhich(1)

πŸ“¦
version 4.2.3 Β· 2 versions
  • 4.2.3 Β· debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 15.1 Β· freebsd 14.5, freebsd 15.1
, in debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ypwhich β€” the manual, but make it make sense ✨

okay bestie, gather round πŸ’– this is ypwhich, and its whole entire job is to return the name of the NIS server or the map master. that's it. that's the gig. she's a little lookup queen and she ate πŸ’…


🌸 SYNOPSIS 🌸

ypwhich [ -d domain ] [ -Vn ] [ hostname ]
ypwhich [ -d domain ] [ -t ] -m [ mname ]
ypwhich -x

three whole fits. pick your vibe ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, ypwhich comes back with the name of the NIS server that's supplying NIS services to a NIS client β€” or, if you're asking about a map, it tells you which server is the master for that map. no cap. πŸ‘‘

if you just run it with no arguments at all, it gives you the NIS server for the local machine. simple. iconic. and if you pass a hostname, it goes and queries that machine instead to find out which NIS master it is using. it's giving "who's your server, bestie?" 🫢


πŸ’– OPTIONS πŸ’–

  • -d domain β€” specify a domain that is not the default domain. main character domain energy, go off πŸŽ€
  • -t β€” this one inhibits map nickname translation. like, no nicknames today, we're going full legal name 😀
  • -m mname β€” find the master NIS server for a map. ⚠️ heads up bestie: you cannot specify a hostname alongside the -m option, so don't even try it πŸ™ˆ. mname can be a mapname or a nickname for a map. and if you omit mname entirely? ypwhich will produce a list of available maps for you. a little gift. a little treat. πŸ“
  • -x β€” display the map nickname translation table. the receipts, the lore, the whole dictionary πŸ“–βœ¨
  • -Vn β€” version of ypbind(8). V3 is the default. use V2 for NIS clients that don't support IPv6. respectfully, if that's you, upgrade bestie 😭

🧚 FILES 🧚

  • /var/yp/nicknames β€” the map nickname translation table. this is where the nicknames live. the group chat of map names πŸ’œ

⭐ SEE ALSO ⭐

domainname(8), nicknames(5), ypbind(8), ypcat(1), ymatch... wait no, ypmatch(1), yppoll(8), ypserv(8), ypset(8) 🌈

the whole friend group fr fr. go read them, they're all lowkey serving 🫢


πŸ‘‘ AUTHOR πŸ‘‘

ypwhich is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@linux-nis.org>. we love a legend. we stan. πŸ’–


and that's the tea, bestie ✨ this was YP Tools 4.2.3, April 2010, ypwhich(1) β€” periodt πŸ’…πŸŽ€