NDB(1)
π¦ NDB(1) β network database π¦
okay so this is from the General Commands Manual, and the manual name is NDB(1). the whole command squad is ndbquery, ndbmkhash, ndbmkdb, ndbipquery, and ndbmkhosts, and theyβre all about the network database. iykyk π
πΈ NAME πΈ
ndbquery,ndbmkhash,ndbmkdb,ndbipquery,ndbmkhostsβ network database
β¨ SYNOPSIS β¨
ndbquery [ -f dbfile ] attr value [ rattr ]
ndbipquery attr value rattr...
ndbmkhash file attr
ndbmkdb
π DESCRIPTION π
The network database holds administrative information used by authdial (see authsrv(3)) and secstored(1). literally the admin-info vault of the network, bestie.
ndbquery searches the database for an attribute of type attr and value value. If rattr is not specified, all entries matched by the search are returned. If rattr is specified, the value of the first pair with attribute rattr of all the matched entries is returned.
ndbipquery uses ndbipinfo (see ndb(3)) to search for the values of the attributes rattr corresponding to the system with entries of attribute type attr and value value.
ndbmkhash creates a hash file for all entries with attribute attr in database file file. The hash files are used by ndbquery and by the ndb library routines. hash girl summer, but make it infrastructure.
ndbmkdb is used in concert with awk(1) scripts to convert uucp systems files and IP host files into database files. It is very specific to the situation at Murray Hill. like, Murray Hill-specific-specific, no cap.
when the database files change underfoot, running programs track them properly. nonetheless, to keep the database searches efficient it is necessary to runndbmkhashwhenever the files are modified. it may be profitable to control this by a frequentcron(8)job. so if you edit, you rehash β thatβs the lore.
ndbmkhosts generates BSD style hosts, hosts.txt, and hosts.equiv files from ndb data base files specified on the command line (default /ndb/local and /ndb/friends). It only processes hosts whose domain names end in domname. The output files are named db.domname, equiv.domname, and txt.domname. For historical reasons, the default domname is research.att.com.
π EXAMPLE π
like, look at this iconic little query:
% ndbquery sys helix
sys=helix dom=helix.research.bell-labs.com bootf=/mips/9powerboot
ip=135.104.117.31 ether=080069020427
proto=il
π FILES π
/ndb/localβ first database file searched/ndb/local.*β hash files for/ndb/local
π«Ά SOURCE π«Ά
/src/cmd/ndb
π SEE ALSO π
thatβs a wrap, bestie β source is /src/cmd/ndb, footer/version tag is NDB(1), and thereβs no date printed, so we move πβ¨π
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms