#!/bin/bash [ -z "$SHARED_SECRET" ] && echo "SHARED_SECRET not set" && exit 1; [ -z "$ZONE" ] && echo "ZONE not set" && exit 1; [ -z "$RECORD_TTL" ] && echo "RECORD_TTL not set" && exit 1; if ! grep 'zone "'$ZONE'"' /etc/bind/named.conf > /dev/null then echo "creating zone..."; cat >> /etc/bind/named.conf < /var/cache/bind/$ZONE.zone < /etc/dyndns.json <