qdm12 / ddns-updater

Container to update DNS records periodically with WebUI for many DNS providers
https://hub.docker.com/r/qmcgaw/ddns-updater/
MIT License
1.66k stars 158 forks source link

`celeros.de` #669

Open softwarecrash opened 6 months ago

softwarecrash commented 6 months ago

hello, i have domains by celeros.de and can assign ddns to subdomains. but the provider only give me this example for updating the ip

https://kc.celeros.de/dyndns?domain=<domain>&ip=<ipaddr>&ip6=<ip6addr>&key=<pass>

manual when i call this adress only with domain and ip it will update.

qdm12 commented 6 months ago

Note you can use https://github.com/qdm12/ddns-updater/blob/master/docs/custom.md for the time being

softwarecrash commented 6 months ago

ah great, why i doenst find that, thank you!

softwarecrash commented 6 months ago

Note you can use https://github.com/qdm12/ddns-updater/blob/master/docs/custom.md for the time being

so now i have found the time to try this, but it create strange get url

this is the config i tried

{
  "settings": [
    {
      "provider": "custom",
      "domain": "my.dns.dev",
      "host": "@",
      "url": "https://kc.celeros.de/dyndns?domain=my.dns.dev&key=xxxxxxxxxxxxxxxxx",
      "ipv4key": "ip",
      "ipv6key": "ip6",
      "success_regex": "1",
      "ip_version": "ipv4",
      "ipv6_suffix": ""
    }
  ]
}

so in the debug logs from the updater it remove domain and replace it with hostname and remove the key

DEBUG GET https://kc.celeros.de/dyndns?hostname=my.dns.dev&ip=1.2.3.4 | headers: User-Agent: DDNS-Updater

btw the url return allways "1" as response, i hope this is right in the config

qdm12 commented 6 months ago

Indeed, reading my own code, what on earth was this, did I write this drunk?!

This should be fixed in ae2bcd55c81caa69fd5a336e5fc4c5c5c615b712 so now it keeps all your query parameters and only overrides the ip key(s). Let me know if it works 😉 I might do a v2.6.1 release, since this is a rather critical bug.

softwarecrash commented 6 months ago

Indeed, reading my own code, what on earth was this, did I write this drunk?!

This should be fixed in ae2bcd5 so now it keeps all your query parameters and only overrides the ip key(s). Let me know if it works 😉 I might do a v2.6.1 release, since this is a rather critical bug.

thank you for the quick replay, so badly i use it as docker compose and dont know how to insert the patch in the container

qdm12 commented 6 months ago

Just docker-compose pull && docker-compose up -d. The changes are automatically built and pushed to Docker hub as the image qmcgaw/ddns-updater

softwarecrash commented 6 months ago

Just docker-compose pull && docker-compose up -d. The changes are automatically built and pushed to Docker hub as the image qmcgaw/ddns-updater

ah thanks, i dont know that changes are directly push to the docker image.

works perfect, thank you verry much!

  "settings": [
    {
      "provider": "custom",
      "domain": "my.domain.de",
      "host": "@",
      "url": "https://kc.celeros.de/dyndns?domain=my.domain.de&key=xxxxxxxxxxxx",
      "ipv4key": "ip",
      "ipv6key": "ip6",
      "success_regex": "1",
      "ip_version": "ipv4",
      "ipv6_suffix": ""
    }
  ]
}

debug output DEBUG GET https://kc.celeros.de/dyndns?domain=my.domain.de&ip=1.2.3.4&key=xxxxxxxxxxxxxxxx