nnsd(1)
β¨ nnsd β the manual page, but make it make sense π
okay so bestie, you opened nnsd(1) and that's the name service facility's commandline server application. that's the whole vibe. let's get into it π«Ά
πΈ SYNOPSIS β¨
nnsd ?-localonly flag? ?-port port?
that's it. that's the whole thing. iconic honestly.
π DESCRIPTION π
first things first: go read Name service facility, introduction before you do anything else. like, seriously. it's the pre-req. i'm not gonna let you skip it. π
so, the app this doc is about β nns β is a simple command line server for the nano name service facility, which comes from the Tcllib packages nameserv and nameserv::server. and lowkey the best part: the application's own source code doubles as a living example of how you're supposed to use the nameserv::server package. so if you're like "how do i even" β read the source, bestie. it's giving tutorial. π
β οΈ real talk though: this name service facility has absolutely nothing to do with the Internet's Domain Name System, aka DNS. zero. none. different species. if DNS is what you're actually after, go look at the packagesdnsandresolvβ both also live in Tcllib. don't mix them up, i'm begging π
π USE CASES π¦
nnsd was written with one main use case in mind:
- Run a nano name service on some host.
that's the list. one item. focused queen. π
π COMMAND LINE β¨
nnsd ?-localonly flag? ?-port port?
this command sets up a server according to whatever options you gave it, then starts it. and then... it just keeps going. it will not exit on its own, because it holds the entire name service database wholly in memory. so you have to kill it yourself β either by sending a signal, or by using the job-control facilities of whatever shell you're in. no graceful little exit for you, sorry bestie π
all the options for configuring the name service are explained in the OPTIONS section, right down there π
π OPTIONS β¨
this section covers every single option available to you:
-localonlybool β if you don't specify this, it defaults totrue, which means only local connections get accepted. the server will accept remote connections β like, connections coming from other hosts β if and only if you set this option tofalse. so flip it and suddenly you're open to the world. no pressure. π₯-portnumber β if you don't specify this, it defaults to38573. it sets the TCP port the server has to listen on for requests. that's the one. that's the number. π
π BUGS, IDEAS, FEEDBACK π«Ά
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. it's just how it is. so please report them in the category nameserv of the Tcllib Trackers: [http://core.tcl.tk/tcllib/reportlist](http://core.tcl.tk/tcllib/reportlist). and while you're there, if you've got ideas for enhancements to the package and/or the documentation β send those too, we want them. π
if you're proposing code changes, pls provide unified diffs β that's the output of diff -u. exactly that format. we're not doing guesswork here. β¨
also important: attachments are strongly preferred over inlined patches. to attach something, go to the Edit form of the ticket right after you create it, then hit the left-most button in the secondary navigation bar. that's the secret handshake. iykyk π€«
π SEE ALSO π¦
nameserv::common(3tcl)nameserv::server(3tcl)
π·οΈ 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!! this was nnsd(1) from tcllib, version 1.0.1 π go run your nano name service, stay local unless you mean it, and remember to actually kill the process. mwah π
β¨π«Ά
π¦ where this page comes from
- debian bookworm: tcllib 1.21+dfsg-1 Β· BSD
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu jammy: tcllib 1.20+dfsg-1 Β· BSD
- ubuntu noble: tcllib 1.21+dfsg-1 Β· BSD
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· 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