) If you make changes to your zone file Emacs will automatically update the serial number for you, in the canonical format of ;; -*- zone -*- ;; ;; Zone file for ;; 86400 IN SOA ( 2006033100 ; Serial YYYYMMDDXX 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 86400 ) ; minimum IN NS ns1. Obviously this won't help you if you use another editor, or another nameserver, but it was a neat trick that I thought was worth sharing. again and again, but this time it is a pure hazard!!Christoph Berg published quite the same thing for vi on his blog today: Cheers, Julien I'm using this script with vim: "--- .../plugins/---- function!
'; Serial'/gc "---- eof --------------------- serial is updated calling : Soa or it won't be updated - the Emacs version will automatically do the update for the relevent files.
On my opinion such situation will lead to forgetting serial number increasement, because you would be used to some "marvelous" editor is doing such things for you. -- If you're smart enough to ask this question, you're smart enough to RTFM and find out yourself.
While we're at it, let's just stop using vi, because you might find yourself on a system with only ed.
Consider (for instance) you are manually editing some zone files 50 times per day using such "clever" stuff.
Consider you then occasionaly edit zone file on system where there is no such "inteligent" editor installed and you have classical vi only.