Category: Web Development

Update linux DNS named serials with bash script

This will update the serials of all of your *.hosts files in the same directory that you executed the “updateserials” command in (aka `pwd`). This only updates serials that begin with the current year. Enjoy! #!/bin/bash read −p “Are you sure you want to update `pwd`/*.hosts serial numbers to `date +%Y%m%d%H` (y/n)? ” if [ […]