On 20.03.09 16:23, Ralf Peng wrote: > Hmm! I was just thinking this is a BUG! > > I wrote a function in Perl to modify the serial number: > > sub increase_serial { [...] > } > > > I do below to execute the reload: > > increase_serial(); > system("/usr/local/bind/sbin/rndc reload");
why not "...rndc reload $zone" ? > OK I run two reload in a second, the serial number was increased > correctly, but bind only reload zones correctly for the first time. It mat need some time to reload _all_ zones. > This is the system log: > > [the first reload is successful]: [...] > Mar 20 16:08:46 localhost named[25599]: zone test.duxieweb.com/IN/cnc: > loaded serial 102502 > Mar 20 16:08:46 localhost named[25599]: zone my.test.com/IN/cnc: > loaded serial 101 > Mar 20 16:08:46 localhost named[25599]: zone test.duxieweb.com/IN/tel: > loaded serial 102502 > Mar 20 16:08:46 localhost named[25599]: zone my.test.com/IN/tel: > loaded serial 101 > > [the second time bind doesn't reload zones even zones db were changed]: > > Mar 20 16:08:46 localhost named[25599]: received control channel > command 'reload' > Mar 20 16:08:46 localhost named[25599]: loading configuration from > '/usr/local/bind9.6/etc/named.conf' > Mar 20 16:08:46 localhost named[25599]: using default UDP/IPv4 port > range: [1024, 65535] > Mar 20 16:08:46 localhost named[25599]: using default UDP/IPv6 port > range: [1024, 65535] > Mar 20 16:08:46 localhost named[25599]: reloading configuration succeeded > Mar 20 16:08:46 localhost named[25599]: reloading zones succeeded > > > Will bind only reload zone files based on the file's mtime by second? > That's will be a huge problem for some dynamic dns I may think. seems so. If you need to do that faster, you should try update or different mechanism -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Christian Science Programming: "Let God Debug It!". _______________________________________________ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users