Open nomis opened 4 years ago
I've made a PR to raise the log level of the recreated database message, because warning is not enough: https://github.com/NLnetLabs/nsd/pull/121
I think you should try to upgrade, it looks like perhaps the fix for eg. #25 could be relevant. 4.1 is a long time ago.
Apart from that we advise people to run with database: ""
setting. Then there is no database. If needed, associate a zonefile with the zone, the data is then written to the zonefile once in a while after it has updated. If you do not set a zonefile, or set "", then the zone is kept in memory and updated from there.
With the database: "" if one zonefile does not work, it should pick up the other ones that work and transfer the missing zones.
I will try migrating to using zone files instead of the database.
Even the latest version of nsd only uses the xfrd state information for the zonestatus command, when I'd really like to know if any zone is returning SERVFAIL without having to query all of the zones via DNS.
nsd is abandoning its database and starting with an empty database:
It doesn't retransfer any zones (and is using potentially out of date copies of zones that have been committed to files).
The zone status is "ok" but all queries return SERVFAIL.
Restarting nsd causes the missing zone content to be transferred again:
There is no
zonefile
configured for this zone.It looks like nsd is using the content of
/var/lib/nsd/xfrd.state
to decide not to transfer any zones on startup, ignoring that/var/lib/nsd/nsd.db
is then unusable.The primary server could be unavailable, so it would be better if nsd didn't delete all its secondary zone data.