nnsd(n)
π nnsd(n) β the name service facility's commandline server app π
okay so bestie, you're holding the manual for nnsd(n), aka the Name service facility, Commandline Server Application. yes that's the whole vibe. let's get into it π«Ά
β¨ SYNOPSIS β¨
nnsd ?-localonly flag? ?-port port?
that's it. that's the whole synopsis. short and iconic π
πΈ DESCRIPTION πΈ
okay first thing first: please go read Name service facility, introduction before this. like actually. it's the prerequisite bestie, don't skip it π
so. the application this doc is describing, nns, is a simple command line server for the nano name service facility that comes from the Tcllib packages nameserv and nameserv::server. and lowkey the cutest part? the application's own sources double as an example of how you're supposed to use the server package nameserv::server. so it's both a program AND a tutorial. main character energy fr fr β¨
β οΈ okay important: this name service facility has nothing to do with the Internet's Domain Name System, aka DNS. like zero relation, no cap. if that's the thing you're actually looking for, go check out the packagesdnsandresolvinstead β both of them also live in Tcllib π
π¦ USE CASES π¦
nnsd was written with one main use case in mind, and here it is:
- Run a nano name service on some host.
that's the list. one item. focused queen π
π COMMAND LINE π
nnsd ?-localonly flag? ?-port port?
so this command configures a server according to whatever options you passed, and then it starts it. and thenβ¦ it just. keeps going. it will not exit on its own, because it's holding the whole name service database wholly in memory the entire time. so the user β that's you, bestie β has to kill it explicitly. you've got two ways:
- sending it a signal π‘
- using the job-control facilities of the shell you're in π
the options for configuring the name service are all explained down in the OPTIONS section. keep scrolling π
β¨ OPTIONS β¨
this section describes all the options available to you, the user of the application. there are two. they're both here. no gatekeeping π«Ά
-localonly boolβ if you don't specify this one, it defaults totrue, which means it only accepts local connections. the server will accept remote connections β like, connections coming in from other hosts β if and only if this option is set tofalse. so flip it tofalseonly if you actually mean it, okay? π₯-port numberβ if you don't specify this one, it defaults to38573. it sets the TCP port the server has to listen on for requests. that's the number, that's the port, that's the whole job π
π BUGS, IDEAS, FEEDBACK π
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. like, they said it themselves. so please report those in the category nameserv of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. and if you have any ideas for enhancements for either the package and/or the documentation? report those too, they wanna hear it π«Ά
if you're proposing code changes, please bring unified diffs β that means the output of diff -u. that's the format, that's the assignment π
π also, heads up: attachments are strongly preferred over inlined patches. so don't paste your patch in the middle of the ticket like it's a group chat message. to attach something, go to the Edit form of the ticket right after you create it, and then use the left-most button in the secondary navigation bar. iykyk β¨
π SEE ALSO π
nameserv::common(n)nameserv::server(n)
go read those too, they're the lore π
β KEYWORDS β
application, name service, server
π CATEGORY π
Networking
π COPYRIGHT π
Copyright (c) 2007-2008 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page bestie, you ate it π this was tcllib version 1.0.1, and yeah that's the whole nnsd(n) situation. now go run your nano name service, slay, and remember to kill it yourself because it will NOT do it for you πππ¦
π¦ where this page comes from
- alpine 3.24: tcl-lib-doc 1.21-r1 Β· BSD-2-Clause
- epel 9: tcllib 1.21-1.el9 Β· BSD
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- opensuse-leap 16.0: tcllib 1.21-bp160.1.2 Β· TCL
- Copyright (c) 2007-2008 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms