Help: Cloudflare sends out changed notification every cycle even though IP address does not change #224

Open
opened 2025-11-20 04:21:42 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @samcro1967 on GitHub (Oct 21, 2022).

  1. Is this urgent: No
  2. DNS provider(s) you use: Cloudflare
  3. Program version: qmcgaw/ddns-updater:latest
  4. What are you using to run the container: docker-compose
  5. Extra information (optional)
    Every time ddns-updater runs, I get a notification that the Cloudflare IP address has been updated even though it has not changed. Guessing I am missing something in the config, but not sure what.
    Logs:
2022/10/21 07:00:32 run.go:262: DEBUG configured to fetch IP: v4 or v6: false, v4: true, v6: false                                                                                                               2022/10/21 07:00:32 run.go:264: DEBUG your public IP address are: v4 or v6: <nil>, v4: x.x.x.x, v6: <nil>                                                                                                   
2022/10/21 07:00:32 run.go:213: INFO IPv4 address of mydomain.net is x.x.x.x and your IPv4 address is x.x.x.x
2022/10/21 07:00:32 run.go:287: INFO Updating record [domain: mydomain.net | host: @ | provider: cloudflare | ip: ipv4] to use x.x.x.x
2022/10/21 07:00:32 logclient.go:51: DEBUG GET https://api.cloudflare.com/client/v4/zones/<redacted>/dns_records?name=mydomain.net&page=1&per_page=1&type=A | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Content-Type: application/json; Accept: application/json; Authorization: Bearer <redacted>
2022/10/21 07:00:33 logclient.go:58: DEBUG 200 OK | headers: Server: cloudflare; Date: Fri, 21 Oct 2022 12:00:33 GMT; Cf-Ray: 75d9d55bea5b870a-ORD; X-Envoy-Upstream-Service-Time: 22; Content-Type: application/json; Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZLKw1UhCHgXF; SameSite=Lax; path=/; expires=Fri, 21-Oct-22 14:30:34 GMT; HttpOnly,__cfruid=745d083820cef12f4dd813d06936b66f844e1195-1666353633; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None; Vary: Accept-Encoding; Cf-Cache-Status: DYNAMIC | body: {"result":[{"id":"61748c45b20d19e282fc983ecec3d1db","zone_id":"<redacted>","zone_name":"mydomain.net","name":"mydomain.net","type":"A","content":"x.x.x.x","proxiable":true,"proxied":true,"ttl":1,"locked":false,"meta":{"auto_added":false,"managed_by_apps":false,"managed_by_argo_tunnel":false,"source":"primary"},"created_on":"2021-12-23T20:17:36.549282Z","modified_on":"2022-10-01T11:47:32.731428Z"}],"success":true,"errors":[],"messages":[],"result_info":{"page":1,"per_page":1,"count":1,"total_count":1,"total_pages":1}}

Configuration file (remove your credentials!):

{
    "settings": [
		{
			"provider": "cloudflare",
			"zone_identifier": "<redacted>",
			"domain": "mydomain.net",
			"host": "@",
			"ttl": 7200,
			"token": "<redacted>",
			"ip_version": "ipv4"
		}
	]
}

Host OS:
Ubuntu 22.04

Originally created by @samcro1967 on GitHub (Oct 21, 2022). 1. Is this urgent: No 2. DNS provider(s) you use: Cloudflare 3. Program version: qmcgaw/ddns-updater:latest 4. What are you using to run the container: docker-compose 5. Extra information (optional) Every time ddns-updater runs, I get a notification that the Cloudflare IP address has been updated even though it has not changed. Guessing I am missing something in the config, but not sure what. Logs: ``` 2022/10/21 07:00:32 run.go:262: DEBUG configured to fetch IP: v4 or v6: false, v4: true, v6: false 2022/10/21 07:00:32 run.go:264: DEBUG your public IP address are: v4 or v6: <nil>, v4: x.x.x.x, v6: <nil> 2022/10/21 07:00:32 run.go:213: INFO IPv4 address of mydomain.net is x.x.x.x and your IPv4 address is x.x.x.x 2022/10/21 07:00:32 run.go:287: INFO Updating record [domain: mydomain.net | host: @ | provider: cloudflare | ip: ipv4] to use x.x.x.x 2022/10/21 07:00:32 logclient.go:51: DEBUG GET https://api.cloudflare.com/client/v4/zones/<redacted>/dns_records?name=mydomain.net&page=1&per_page=1&type=A | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Content-Type: application/json; Accept: application/json; Authorization: Bearer <redacted> 2022/10/21 07:00:33 logclient.go:58: DEBUG 200 OK | headers: Server: cloudflare; Date: Fri, 21 Oct 2022 12:00:33 GMT; Cf-Ray: 75d9d55bea5b870a-ORD; X-Envoy-Upstream-Service-Time: 22; Content-Type: application/json; Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZLKw1UhCHgXF; SameSite=Lax; path=/; expires=Fri, 21-Oct-22 14:30:34 GMT; HttpOnly,__cfruid=745d083820cef12f4dd813d06936b66f844e1195-1666353633; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None; Vary: Accept-Encoding; Cf-Cache-Status: DYNAMIC | body: {"result":[{"id":"61748c45b20d19e282fc983ecec3d1db","zone_id":"<redacted>","zone_name":"mydomain.net","name":"mydomain.net","type":"A","content":"x.x.x.x","proxiable":true,"proxied":true,"ttl":1,"locked":false,"meta":{"auto_added":false,"managed_by_apps":false,"managed_by_argo_tunnel":false,"source":"primary"},"created_on":"2021-12-23T20:17:36.549282Z","modified_on":"2022-10-01T11:47:32.731428Z"}],"success":true,"errors":[],"messages":[],"result_info":{"page":1,"per_page":1,"count":1,"total_count":1,"total_pages":1}} ``` Configuration file (**remove your credentials!**): ``` { "settings": [ { "provider": "cloudflare", "zone_identifier": "<redacted>", "domain": "mydomain.net", "host": "@", "ttl": 7200, "token": "<redacted>", "ip_version": "ipv4" } ] } ``` Host OS: Ubuntu 22.04
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#224