If the URL is within updates.json than it will not update the record. #48

Closed
opened 2025-11-20 04:19:23 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @msrlrocket on GitHub (Jun 3, 2020).

Originally assigned to: @qdm12 on GitHub.

Hey, I think I discovered an issue that when the record is within updates.json it will no longer update the record if the IP changes. This is repeatable because as long as the updates.json exists it will not update the record. Delete the file and boot up the container and it will update the record.

  1. Is this urgent?

    • Yes
    • No
  2. What DNS service provider(s) are you using?

    • Cloudflare
    • DDNSS.de
    • DNSPod
    • Dreamhost
    • DuckDNS
    • GoDaddy
    • Google
    • Infomaniak
    • Namecheap
    • NoIP
  3. What's the version of the program?

    See the line at the top of your logs

    Running version latest built on 2020-06-01T21:16:36Z (commit 9ccdbbd)

  4. What are you using to run the container?

    • Docker run
    • Docker Compose
    • Kubernetes
    • Docker stack
    • Docker swarm
    • Podman
    • Other:
  5. Extra information

Logs:


plex@LMS:~/utilities/ddns$ docker-compose up
Starting ddns ... done
Attaching to ddns
ddns    | =========================================
ddns    | =========================================
ddns    | ========= DDNS Universal Updater ========
ddns    | =========================================
ddns    | === Made with ❤️  by github.com/qdm12 ====
ddns    | =========================================
ddns    | 
ddns    | Running version latest built on 2020-06-01T21:16:36Z (commit 9ccdbbd)
ddns    | 
ddns    | 
ddns    | 🔧  Need help? https://github.com/qdm12/ddns-updater/issues/new
ddns    | 💻  Email? quentin.mcgaw@gmail.com
ddns    | ☕  Slack? Join from the Slack button on Github
ddns    | 💸  Help me? https://github.com/sponsors/qdm12
ddns    | 2020-06-03T03:48:15.502Z	INFO	Found 11 settings to update records
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host @
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL2 host @
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host filebot
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host netdata
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host files
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host nginx
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host portainer
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host rss
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host shlink
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host shlink-server
ddns    | 2020-06-03T03:48:15.751Z	INFO	Reading history from database: domain URL host sonarr
ddns    | 2020-06-03T03:48:15.751Z	INFO	Web UI listening at address 0.0.0.0:8000 with root URL ""
ddns    | 2020-06-03T03:48:15.751Z	INFO	backup: disabled
ddns    | 2020-06-03T03:48:16.020Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:48:16.057Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:48:16.096Z	WARN	lookup netdata.URL on 127.0.0.11:53: no such host
ddns    | 2020-06-03T03:48:16.096Z	INFO	IP address changed from <nil> to IP
ddns    | 2020-06-03T03:48:16.135Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:48:16.174Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:48:16.213Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:48:16.251Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:48:16.328Z	WARN	lookup shlink-server.URL on 127.0.0.11:53: no such host
ddns    | 2020-06-03T03:48:16.328Z	INFO	IP address changed from <nil> to IP
ddns    | 2020-06-03T03:48:16.366Z	INFO	IP address changed from 104.27.158.141 to IP
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: sonarr | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: @ | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: files | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: nginx | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: rss | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: shlink-server | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.366Z	INFO	Updating record [domain: URL | host: filebot | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.367Z	INFO	Updating record [domain: URL | host: netdata | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:48:16.645Z	INFO	Updating record [domain: URL | host: portainer | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.032Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.071Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.110Z	WARN	lookup netdata.URL on 127.0.0.11:53: no such host
ddns    | 2020-06-03T03:49:16.110Z	INFO	IP address changed from <nil> to IP
ddns    | 2020-06-03T03:49:16.146Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.181Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.218Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.254Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.331Z	WARN	lookup shlink-server.URL on 127.0.0.11:53: no such host
ddns    | 2020-06-03T03:49:16.331Z	INFO	IP address changed from <nil> to IP
ddns    | 2020-06-03T03:49:16.372Z	INFO	IP address changed from X to IP
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: portainer | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: rss | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: filebot | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: files | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: nginx | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: shlink-server | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: sonarr | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: @ | provider: cloudflare | ip: ipv4 or ipv6]
ddns    | 2020-06-03T03:49:16.372Z	INFO	Updating record [domain: URL | host: netdata | provider: cloudflare | ip: ipv4 or ipv6]



Configuration file (remove your credentials!):


Host OS:

UBUNTU

Originally created by @msrlrocket on GitHub (Jun 3, 2020). Originally assigned to: @qdm12 on GitHub. Hey, I think I discovered an issue that when the record is within updates.json it will no longer update the record if the IP changes. This is repeatable because as long as the updates.json exists it will not update the record. Delete the file and boot up the container and it will update the record. 1. Is this urgent? - [ ] Yes - [x] No 2. What DNS service provider(s) are you using? - [x] Cloudflare - [ ] DDNSS.de - [ ] DNSPod - [ ] Dreamhost - [ ] DuckDNS - [ ] GoDaddy - [ ] Google - [ ] Infomaniak - [ ] Namecheap - [ ] NoIP 3. What's the version of the program? **See the line at the top of your logs** `Running version latest built on 2020-06-01T21:16:36Z (commit 9ccdbbd)` 4. What are you using to run the container? - [ ] Docker run - [x] Docker Compose - [ ] Kubernetes - [ ] Docker stack - [ ] Docker swarm - [ ] Podman - [ ] Other: 5. Extra information Logs: ``` plex@LMS:~/utilities/ddns$ docker-compose up Starting ddns ... done Attaching to ddns ddns | ========================================= ddns | ========================================= ddns | ========= DDNS Universal Updater ======== ddns | ========================================= ddns | === Made with ❤️ by github.com/qdm12 ==== ddns | ========================================= ddns | ddns | Running version latest built on 2020-06-01T21:16:36Z (commit 9ccdbbd) ddns | ddns | ddns | 🔧 Need help? https://github.com/qdm12/ddns-updater/issues/new ddns | 💻 Email? quentin.mcgaw@gmail.com ddns | ☕ Slack? Join from the Slack button on Github ddns | 💸 Help me? https://github.com/sponsors/qdm12 ddns | 2020-06-03T03:48:15.502Z INFO Found 11 settings to update records ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host @ ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL2 host @ ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host filebot ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host netdata ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host files ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host nginx ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host portainer ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host rss ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host shlink ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host shlink-server ddns | 2020-06-03T03:48:15.751Z INFO Reading history from database: domain URL host sonarr ddns | 2020-06-03T03:48:15.751Z INFO Web UI listening at address 0.0.0.0:8000 with root URL "" ddns | 2020-06-03T03:48:15.751Z INFO backup: disabled ddns | 2020-06-03T03:48:16.020Z INFO IP address changed from X to IP ddns | 2020-06-03T03:48:16.057Z INFO IP address changed from X to IP ddns | 2020-06-03T03:48:16.096Z WARN lookup netdata.URL on 127.0.0.11:53: no such host ddns | 2020-06-03T03:48:16.096Z INFO IP address changed from <nil> to IP ddns | 2020-06-03T03:48:16.135Z INFO IP address changed from X to IP ddns | 2020-06-03T03:48:16.174Z INFO IP address changed from X to IP ddns | 2020-06-03T03:48:16.213Z INFO IP address changed from X to IP ddns | 2020-06-03T03:48:16.251Z INFO IP address changed from X to IP ddns | 2020-06-03T03:48:16.328Z WARN lookup shlink-server.URL on 127.0.0.11:53: no such host ddns | 2020-06-03T03:48:16.328Z INFO IP address changed from <nil> to IP ddns | 2020-06-03T03:48:16.366Z INFO IP address changed from 104.27.158.141 to IP ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: sonarr | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: @ | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: files | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: nginx | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: rss | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: shlink-server | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.366Z INFO Updating record [domain: URL | host: filebot | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.367Z INFO Updating record [domain: URL | host: netdata | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:48:16.645Z INFO Updating record [domain: URL | host: portainer | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.032Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.071Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.110Z WARN lookup netdata.URL on 127.0.0.11:53: no such host ddns | 2020-06-03T03:49:16.110Z INFO IP address changed from <nil> to IP ddns | 2020-06-03T03:49:16.146Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.181Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.218Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.254Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.331Z WARN lookup shlink-server.URL on 127.0.0.11:53: no such host ddns | 2020-06-03T03:49:16.331Z INFO IP address changed from <nil> to IP ddns | 2020-06-03T03:49:16.372Z INFO IP address changed from X to IP ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: portainer | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: rss | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: filebot | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: files | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: nginx | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: shlink-server | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: sonarr | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: @ | provider: cloudflare | ip: ipv4 or ipv6] ddns | 2020-06-03T03:49:16.372Z INFO Updating record [domain: URL | host: netdata | provider: cloudflare | ip: ipv4 or ipv6] ``` Configuration file (**remove your credentials!**): ```json ``` Host OS: UBUNTU
Author
Owner

@qdm12 commented on GitHub (Jun 3, 2020):

Thanks for reporting this 🥇! It was indeed silently not updating because:

  1. It was finding the latest stored IP address in updates.json
  2. Check if it matches the public IP address obtained
  3. Finish and mark the record as up to to date if these were equal, despite the DNS resolution saying otherwise

I have simply removed that check, relying on DNS lookup is more reliable in my opinion.

However, I can see lookup netdata.URL on 127.0.0.11:53: no such host as well as for shlink-server.URL, any reason for this? You're safe as in this case, they will be updated at every check period. Ideally though, it would only update them when necessary.

Thanks!!

@qdm12 commented on GitHub (Jun 3, 2020): Thanks for reporting this 🥇! It was indeed silently not updating because: 1. It was finding the latest stored IP address in updates.json 1. Check if it matches the public IP address obtained 1. Finish and mark the record as up to to date if these were equal, despite the DNS resolution saying otherwise I have simply removed that check, relying on DNS lookup is more reliable in my opinion. **However**, I can see `lookup netdata.URL on 127.0.0.11:53: no such host` as well as for `shlink-server.URL`, any reason for this? You're safe as in this case, they will be updated at every check period. Ideally though, it would only update them when necessary. Thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#48