ddns-scripts: update hotplug to handle ip address changing by ifupdate #28546
+8
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
When the ipv6 address is updated for an interface. (some ISP only give dynamic ipv6 address)
The ddns script will go into dead loop, as the new ipv6 address is not used.
The simple change is restarting ddns when ip address is changed.
see the log below
180654 : #> /usr/bin/wget --hsts-file=/tmp/.wget-hsts -nv -t 1 -O /var/run/ddns/myddns_ipv6.dat -o /var/run/ddns/myddns_ipv6.err --bind-address=0000:0000:0000:0000::1 --no-proxy 'https://update.dedyn.io/update?username=*&password=***PW***&hostname=*&myipv6=0000:0000:0000:0000:0000:0000:0000:0001&myipv4=preserve' 180654 ERROR : GNU Wget Error: '4' 180654 : failed: Address not available. failed: Address family not supported by protocol. 180654 WARN : Transfer failed - retry 4914/0 in 60 seconds