I noticed that your tutorials are getting better and better.
You use vars to simplify commads (I will adopt this)
You format file contents and add outputs
You use bash for scripting :D
One point to add:
If you would create keys for each subdomain and change the update-policy to:
zone...