NSD(8)
π NSD(8) β the girlies' guide to Name Server Daemon π
okay so bestie, you know how the internet needs someone to actually know the answers? like, who's the authority on what domain goes where? that's NSD, and she's literally iconic for it. this is version 4.15.4 of the Name Server Daemon, and I'm gonna walk you through the whole thing, no cap. it's giving "I read the manpage so you don't have to" energy, and honestly? I ate. π
β¨ SYNOPSIS β¨
nsd [-4] [-6] [-a ip-address[@port]] [-c configfile] [-d] [-h] [-i
identity] [-I nsid] [-l logfile] [-N server-count] [-n
noncurrent-tcp-count] [-P pidfile] [-p port] [-s seconds] [-t chrootdir]
[-u username] [-V level] [-v]
like, that's the whole vibe check right there. slay. π
π¦ DESCRIPTION π¦
NSD is a complete implementation of an authoritative DNS nameserver β which basically means she's the main character of DNS, holding all the receipts on who's who. On startup, NSD reads her config file, puts herself into the background (she's β¨busyβ¨), and starts answering queries on port 53 β or a different port if you hit her with the -p port option.
By default, NSD binds to all local interfaces available. But if you want her to be picky, use the -a ip-address[@port] option to lock her onto one specific interface address. And if you give that option more than once? She'll bind her UDP and TCP sockets to all the specified ip-addresses separately. obsessed. If IPv6 is enabled when NSD is compiled, you can specify an IPv6 address too. periodt. π
π OPTIONS π
okay listen, all the options can be specified in the configfile (the -c argument) β except for -v and -h. and if you specify options on the commandline, those take precedence over whatever the configfile says. she's not confused, she's just discerning.
usually you should start NSD with the nsd-control(8) start command, invoked from a /etc/rc.d/nsd.sh script or something similar at operating system startup. iykyk.
-4β Only listen to IPv4 connections. old school, but make it fashion. π§-6β Only listen to IPv6 connections. future is now bestie. β-a ip-address[@port]β Listen to the specifiedip-address. theip-addressmust be specified in numeric format (using the standard IPv4 or IPv6 notation). optionally, a port number can be given. this flag can be specified multiple times to listen to multiple IP addresses. if this flag is not specified, NSD listens to the wildcard interface. she's flexible like that. π-c configfileβ Read the specifiedconfigfileinstead of the default/etc/nsd/nsd.conf. for format description seensd.conf(5). yes, read the other manual. she said what she said. π«Ά-dβ Do not fork, stay in the foreground. like, she's not leaving the group chat. π«Ά-hβ Print help information and exit. the classic "what's the tea" option. πΈ-i identityβ Return the specifiedidentitywhen asked for CH TXT ID.SERVER (this option is used to determine which server is answering the queries when they are anycast). the default is the name returned bygethostname(3). so she knows her name. π-I nsidβ Add the specifiednsidto the EDNS section of the answer when queried with an NSID EDNS enabled packet. as a sequence of hex characters or withascii_prefix and then an ascii string. fancy. π-l logfileβ Log messages to the specifiedlogfile. the default is to log to stderr and syslog. if azonesdir:is specified in the config file, this path can be relative to that directory. she's organized. ποΈ-N countβ StartcountNSD servers. the default is1. starting more than a single server is only useful on machines with multiple CPUs and/or network adapters. like, don't overwork a single-core girlie. π-n numberβ The maximum number of concurrent TCP connections that can be handled by each server. the default is100. she can hold a lot of conversations at once, ngl. π₯-P pidfileβ Use the specifiedpidfileinstead of the platform specific default, which is mostly.. if azonesdir:is specified in the config file, this path can be relative to that directory. cute. π-p portβ Answer the queries on the specifiedport. normally this is port53. don't come for her unless she sends for you. β-s secondsβ Produce statistics dump everysecondsseconds. this is equal to sending SIGUSR1 to the daemon periodically. she's tracking her metrics, bestie. π-t chrootβ Specifies a directory to chroot to upon startup. this option requires you to ensure that appropriatesyslogd(8)socket (e.g.chrootdir /dev/log) is available, otherwise NSD won't produce any log output. so like, don't forget the socket or she'll go silent. and that's not the vibe. π¨-u usernameβ Drop user and group privileges to those ofusernameafter binding the socket. theusernamemust be one of:username,id, orid.gid. for example:nsd,80, or80.80. she's secure and she knows it. π-V levelβ This value specifies the verbosity level for (non-debug) logging. default is0. she can be chatty if you want. π£οΈ-vβ Print the version number of NSD to standard error and exit. a little "hey bestie, it's me" moment. π
NSD also reacts to the following signals:
SIGTERMβ Stop answering queries, shutdown, and exit normally. she's logging off. bye bestie. πSIGHUPβ Reopen logfile (assists rotation) and optionally update TSIG keys and zones. she's refreshing her feed. πSIGUSR1β Dump BIND8-style statistics into the log. Ignored otherwise. stats queen. π
π FILES π
- the process id of the name server. (like, she has a whole file for it. very organized.)
/etc/nsd/nsd.confβ default NSD configuration file. the OG. π
π§ DIAGNOSTICS π§
NSD will log all the problems via the standard syslog(8) daemon facility, unless the -d option is specified. so if something goes wrong, she's telling syslog, not you. unless you told her to stay in the foreground. then she's telling you directly. π
π SEE ALSO π
nsd.conf(5), nsd-checkconf(8), nsd-control(8)
like, read them. they're part of the squad. π«Ά
π AUTHORS π
NSD was written by NLnet Labs and RIPE NCC joint team. please see the CREDITS file in the distribution for further details. iconic collaboration. π
and that's the whole thing! so like, to sum up: NSD 4.15.4 by NLnet Labs and RIPE NCC, dated okt 21, 2026. she's a whole authoritative DNS server and honestly? she ate and left no crumbs. now go forth and serve some names, bestie. you got this. πβ¨ππ¦πΈπ π«Άππ₯ππβππππ§π
π¦ where this page comes from
- epel 10: nsd 4.15.4-1.el10_3 Β· BSD-3-Clause
- epel 9: nsd 4.15.4-1.el9 Β· BSD-3-Clause
- Copyright (c) 2001\-2024, NLnet Labs. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms