Skip to content

Instantly share code, notes, and snippets.

View kindlehl's full-sized avatar
💭
git push origin master -f

kindlehl kindlehl

💭
git push origin master -f
View GitHub Profile
@kindlehl
kindlehl / checkzone.sh
Created February 19, 2019 01:26
Script to check zones. PUT THIS IN THE SCRIPTS FOLDER TO RUN SUCCESSFULLY
#!/bin/bash
if [ -z $1 ] || [ -z $2 ]; then
echo Hey you, use proper syntax!
echo 'checkzone.sh <zone name> <path/to/zonefile>'
echo Example: ./checkzone.sh 0.1.0.3.0.8.c.b.5.0.6.2.ip6.arpa db.0.1.0.3.0.8.c.b.5.0.6.2.ip6.arpa
exit 1
fi
expandIP() {