DNS always updating

Jim Reid jim at rfc1035.com
Tue Dec 2 19:35:34 UTC 2003


    >> If I do not run my script and just reload the nameserver
    >> without having made any changed to the zonefiles, he just
    >> starts and then does nothing.

    >> So my question is: How does bind determine whether changes have
    >> taken place to that he needs to send notifies and reload all
    >> the files? 

The name server remembers the time when it last loaded a zone file.
On a reload, it compares that against the time that the filesystem
says the zone file was last changed. If the zone file is newer than
the timestamp when the server last loaded the zone, the zone gets
loaded again. So your script should be fixed so that it doesn't
generate new copies of zone files that haven't changed. You should
also consider generating the files in some other part of the
filesystem and then having the new or changed ones copied to the place
where the name server loads them. ie Don't generate the files directly
into the name server's working directory.


More information about the bind-users mailing list