[nsd-users] tinydns to nsd

richard lucassen mailinglists at lucassen.org
Wed Dec 25 07:19:15 UTC 2019


On Tue, 24 Dec 2019 23:18:01 +0000
Stuart Henderson <stu at spacehopper.org> wrote:

> > > The DB format is optional, and in fact, not recommended these
> > > days. Just set:
> > > 
> > > database: ""
> > > 
> > > in your nsd.conf, and NSD will not build a database file. It will
> > > just read zones into memory and serve from there.
> > 
> > I use the default /var/lib/nsd/nsd.db, that's what I meant with db,
> > just "database".
> 
> The file is not required at all. Not just "leave at default", but it
> is usually recommended to actually disable it with
> 
> database: ""
> 
> Some OS builds do this by default, others don't.

This is Debian:

database: <filename>
By default /var/lib/nsd/nsd.db' is used. The specified file is used to
store the compiled zone information. Same as commandline option -f.  If
set to "" then no database is  used. This uses less memory but zone
updates are not (immediately) spooled to disk.

So, in case of a supervised version and rsynced zone files it is not a
problem to set it to "". But the database is indexed I suppose. NSD is
serving a few hundred domains and the database is just a few megabytes
big. There must be some or other threshold to use a database or not.
What would be the advice in this particular case?

R.

-- 
richard lucassen
http://contact.xaq.nl/



More information about the nsd-users mailing list