Re: changes to max-refresh-time are ignored

Wouter Wijngaards <[email protected]>
Newsgroups gmane.network.dns.nsd.general
Message-ID <[email protected]>
Hi Klaus,

The option is applied when the timer is set, and this happens when the
previous timer expires.  In xfrd.state NSD keeps track of timers, even
if NSD is not running.  If they expire while written there, the timer
should also get remade.  When the timer is set again when you have
changed the option, then it should apply the new option value.

From a code read, the reconfig command should also apply the new
max-refresh-time option, but the timer needs to expire, then the option
value comes into effect and changes the setting of the next timer.

The code uses the min and max values to change the setting of the timer
value.  It does not keep track of the fact that the timer value (that
has elapsed some time already) was created because of that option value
and then recreate what the timer could have been if another option value
had existed in the past.  That would be hard to code.  I also do not see
an easy way to trigger it into resetting the timers for that zone, which
is what the delete of the xfrd.state file did.  So I do not know what to
fix, looks like it works, but perhaps unexpectedly so.

Best regards, Wouter

On 7/9/19 12:24 PM, Klaus Darilion wrote:
> Hi!
> 
> I set max-refresh-time: 60.
> 
> zonestatus reports:
>         wait: "54 sec between attempts"
> 
> 
> Then I changed max-refresh-time: 90 nad restarted NSD, but NSD still
> uses the old value.
> 
> Only after "rm /var/lib/nsd/xfrd.state" the new value is used.
> 
> regards
> Klaus
> _______________________________________________
> nsd-users mailing list
> [email protected]
> https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>

_______________________________________________
nsd-users mailing list
[email protected]
https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE7fqj8spObrBWga+On28cLX4EX40FAl0wipgACgkQn28cLX4E
X41i+RAAkX1e4E6MV4kcon3FTCbnedp5rPbqvimB+7C0c9MhCd03z2hw2H6H1/yZ
bswq/FdWfxPz4L81IQjbtPj521tkcHVwSTyjxy76jBHO2V0LI59tZb5ZW2vLfwX5
UCuOLs/mPb+Lho71TWqHCbX4AAF4S/wQ+E6zR3XiqJxK4QmEFt7PnAQQAjkKj9gD
PEbNiJNdLdjQfcDWD8ziSNUiowCbPSCM1mJMc40QHUu/JdwQEIMILMvJJrFxXtDp
FBcADxE4wcQjJkRs7pYDsH2o3dsqCa2CCB/w3blgQZYAfcFwfqy+NMoS9g7M8Ip5
m/HdUW1o4PClwav5rT/KlncrgILl12vo7OoZW7zBgj1POf50LKcmcQMyICgSyNHf
JZkWJ2XrfMNcOMVnBi8+KSfQt960lcomBuf2klYMZWU801u5KwiDfcqphziZRiZ3
SXhXy+1kX31xDO0xgvaSEYRw8htaAwavPZ0RtjRh3ijzxwjH30C5v/TfU+voe+kW
+i0NlHKXSVXBA8VpFu++/yA8zpjimF7TlFUQQ6bYhO2Ccl4v8zwUP0RwZzQifNIa
4YDbCkXous053okeN6R+EnBi2G0plE6u6QTPwe5oNUHowDnK/FwnAjmBu4NVRBsQ
VzwRrYZ9hReLDcLM8q99AkeHTmpr0eZ38K5vwQpcxyt5lcFO+Bs=
=LDS8
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.