Skip to content

Instantly share code, notes, and snippets.

@sulrich
Created November 27, 2014 19:32
Show Gist options
  • Select an option

  • Save sulrich/48e5d9b7c95ba93b0562 to your computer and use it in GitHub Desktop.

Select an option

Save sulrich/48e5d9b7c95ba93b0562 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# path to key file associated with the key for the zone
KEY_FILE="${HOME}/bin/keys/K-MY-KEY-HERE.key"
# path to file with the appropriate entries created by the setup process
DELETE_FILE="/tmp/delete-t-MY-ZONE-HERE-update.txt"
echo -n "sending zone deletion ... "
/usr/bin/nsupdate -k ${KEY_FILE} ${DELETE_FILE}
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment