Skip to content

Instantly share code, notes, and snippets.

@dijeesh
Created December 7, 2016 08:03
Show Gist options
  • Select an option

  • Save dijeesh/2aaaba26f83868e1a913f886ffdcdc39 to your computer and use it in GitHub Desktop.

Select an option

Save dijeesh/2aaaba26f83868e1a913f886ffdcdc39 to your computer and use it in GitHub Desktop.
cd /var/named
sed -i 's/20[0-9][0-9]\{7\}/2016120701/g’ *.db
This will set Serial Numbers for all zones to : 2016120701 [ YYYYMMDDNN ]
Take a backup of named directory before updating serial numbers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment