You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error when you have more than one domain (DNSIDsv4) )to be updated. Only the first ID will be updated, all other will be ignored, because the variable old.ipv4 is updated inside the "for loop", which causes that in the next loop the old.ipv4==new.ipv4.
So please remove line 133 (echo $NEWIPv4 > old.ipv4). I think the same apply for IPv6, but I don't use it.
I put at the end of the script the following lines and it works like this:
if [ ! "$OLDIPv4" == "$NEWIPv4" ]; then echo $NEWIPv4 > old.ipv4 log "IP Address updated to $NEWIPv4" log "###################################################" fi
The text was updated successfully, but these errors were encountered:
There is an error when you have more than one domain (DNSIDsv4) )to be updated. Only the first ID will be updated, all other will be ignored, because the variable old.ipv4 is updated inside the "for loop", which causes that in the next loop the old.ipv4==new.ipv4.
So please remove line 133 (echo $NEWIPv4 > old.ipv4). I think the same apply for IPv6, but I don't use it.
I put at the end of the script the following lines and it works like this:
if [ ! "$OLDIPv4" == "$NEWIPv4" ]; then echo $NEWIPv4 > old.ipv4 log "IP Address updated to $NEWIPv4" log "###################################################" fi
The text was updated successfully, but these errors were encountered: