I have BIND 9 set up and running on my local machine to answer DNS queries locally. I know it's not neccessary; my router has a built-in nameserver. But I do that for learning purposes.
Now I need BIND to dump it's cache before terminating (shutting down the machine, for example), and then reloading it from the same file automatically upon starting. Is there a way to do this. I know that
can do the first trick (although, manually). So how to configure BIND to automatically do both chores for the sake of performance, so that I wouldn't unnecessarily lose all the cache after a reboot?