Skip to content

Instantly share code, notes, and snippets.

@jsonmaur jsonmaur/main.sh
Created Oct 21, 2016

Embed
What would you like to do?
cli53 round robin
HOST_NAME="speed"
TTL="300"
CURRENT_IPS=($(cli53 export -f "cdn.test.com" | grep "speed.cdn.test.com" | awk '{print $5}'));
for i in "${CURRENT_IPS[@]}"; do if [ $i != $PUBLIC_IP ]; then echo $i && IPCMD+=("$HOST_NAME $TTL A $i"); fi done
/usr/local/bin/cli53 rrcreate --replace "cdn.test.com" "${IPCMD[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.