On 2019/12/24 22:28, richard lucassen via nsd-users wrote:> On Tue, 24 Dec 2019 14:59:53 +0100 > Anand Buddhdev <anandb at ripe.net> wrote: > > I do not receive my own posts, I also get "needs moderator approval" > although I received a welcome to this mailinglist. Must be something > wrong somewhere... > > > > only read these files when it receives a HUP or a restart and > > > converts it to a db format. Now I need to add a domain in two > > > places: 1) the > > > > 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.
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/