Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use INWX Name server to check old ip #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LukasK13
Copy link

@LukasK13 LukasK13 commented Nov 7, 2020

When using multiple IDs for either v4 or v6, only one ID gets updated. This is due to the used caching of the old ip address which gets updated once the first ID has been updated leading to "no changes" for all subsequent IDs.
To fix this I changed the script to check the external NS of INWX for the old ip to determine if an update is required.
Therefore, two new parameters are required:

  • DOMAIN: The domain that is checked
  • DNSSERVER: The nameserver that is used for the checks. Defaults to the INWX nameserver

Strubbl added a commit to Strubbl/Bash-INWX-DynDNS that referenced this pull request Oct 29, 2021
This commit fixes a race condition, where only the first inwx id of an
array of multiple ids gets updated. The section to save the old v4 and
v6 address is moved out of the for loop in order to have these variables
saved globally. This way we have still the old ip address saved, even in
the second run of the for loop.

This commit is a similar solution to the more complex solutions in gehaxelt#23
and gehaxelt#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant