Skip to content

Instantly share code, notes, and snippets.

View cupracer's full-sized avatar

Thomas Schulte cupracer

  • NRW, Germany
  • 10:18 (UTC +02:00)
View GitHub Profile
@cupracer
cupracer / bind-serial-update.sh
Last active January 26, 2018 10:07
Update the timestamp of a Bind DNS zonefile
#!/bin/bash
if [ $# -ne 1 ]; then
echo "missing parameter"
exit 1
fi
ZONEFILE=$1
if ! [ -f $ZONEFILE ]; then