MAKEDBM(8)

πŸ“¦
version 4.2 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 MAKEDBM(8) β€” makedbm πŸ’…

okay bestie, so makedbm is a real one from the NIS Reference Manual and it's about to be your new fave. Here's the tea: it creates or dumps a ypserv database file. Let's get into it πŸ¦‹


✨ NAME ✨

makedbm β€” create or dump a ypserv database file πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

/usr/lib/yp/makedbm [-a | -r] [-b] [-c] [-s] [-l] [-i YP_INPUT_NAME]
                    [-o YP_OUTPUT_NAME] [-m YP_MASTER_NAME] inputfile
                    dbname

/usr/lib/yp/makedbm -u dbname

/usr/lib/yp/makedbm -c

/usr/lib/yp/makedbm --version

🌈 DESCRIPTION 🌈

So makedbm takes the inputfile and converts it into a ypserv database file. Currently? GDBM is what's being used as the database. iconic of it πŸ’…

Every single line of the input file gets converted into one single record. All characters up to the first TAB or SPACE are the key, and the rest of the line is the data.

⚠️ heads up bestie: makedbm does not treat # as a special character. like, at all. it's just a normal little guy to it πŸ™ˆ

πŸ’… OPTIONS πŸ’…

  • -a β€” special support for mail aliases. The way we couldn't use sendmail for this 😭 sendmail uses db, but ypserv uses gdbm as the database format.
  • -b β€” inserts the YP_INTERDOMAIN into the output. This key makes ypserv(8) use DNS for host name and address lookups for hosts that aren't found in the maps. DNS fallback slay ✨
  • -c β€” sends a YPPROC_CLEAR to the local ypserv(8). This makes ypserv invalidate all cached entries. clean slate energy 🧹
  • -l β€” converts the keys of the given map to lower case.
  • -i YP_INPUT_NAME β€” creates a special entry with the key YP_INPUT_NAME.
  • -m YP_MASTER_NAME β€” creates a special entry with the key YP_MASTER_NAME. And if no master host name is specified? YP_MASTER_NAME gets set to the local host name. defaults, we love them πŸ’œ
  • -o YP_OUTPUT_NAME β€” creates a special entry with the key YP_OUTPUT_NAME.
  • -r β€” handles # as a comment sign and removes the comment. so THIS is where # gets treated specially, not in the default behavior, iykyk πŸ‘‘
  • -s β€” secure map. Accepts connections from secure NIS networks only (that means reserved ports). keeping it locked down πŸ”’
  • -u dbname β€” dumps a ypserv database file. Prints out the file in text format, one entry per line, with a single space separating keys from values. peek behind the curtain 🫢
  • --no-limit-check β€” don't check for the NIS key and data limit. living dangerously, no cap πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • ypserv(8) β€” go read it bestie, they're a package deal πŸ’–

⭐ AUTHOR ⭐

makedbm was written by Thorsten Kukuk <kukuk@linux-nis.org>. legend behavior fr fr πŸ‘‘


okay that's the whole page!! this one's from the NIS Reference Manual, dated 12/31/2020, and the manual page name is MAKEDBM(8) β€” and that's a wrap, mwah πŸ’‹πŸŽ€βœ¨