In case anyone else needs it, here's a quick bash script I wrote to calculate the new serial for #bind zones. At the moment, it only supports one zone per file, but I can update it to grok more than one fairly easily if it would be helpful for anyone. In case the serial has been holding you up from automating your #dns entries:
https://mastodon.online/@vwbusguy/111014338230905573
検索
It seems that most people who manage #bind with #Ansible have given up on the RFC recommendation for SOA serials YYYYMMDDxx and just use epoch time, which means that since it's a 32-bit unsigned value per RFC1035, there are going to be a lot of #DNS problems for domain names that are still operating in the year 2106.