Skip to content

Instantly share code, notes, and snippets.

@jsonmaur jsonmaur/
Created Oct 21, 2016

What would you like to do?
cli53 round robin
CURRENT_IPS=($(cli53 export -f "" | grep "" | 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 "" "${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.