Page 1 of 1

New DDNS service that uses PUT?

Posted: Sun Oct 16, 2016 5:31 am
by bronson
I'd like to add a new dynamic DNS service. However, the service requires an HTTP PUT, not a GET. Here's an example using curl:

curl -X PUT --user me@example.net:PASSWORD http://box.example.net/admin/dns/custom ... xample.net

Is there any way to generate a PUT? It doesn't appear that any other providers in ddns_providers.conf use it, and https://github.com/ericpaulbishop/gargo ... _updater.c seems to only use get_url.

Or is there an easier way to solve this? I'm hoping I can do better than just running this on the router... : )

while true; do curl -X PUT http://etc/etc; sleep 900; done

Re: New DDNS service that uses PUT?

Posted: Sun Oct 16, 2016 6:42 am
by Lantis
It would be reasonably complicated to write it in.
You'd have to modify ewget.

Re: New DDNS service that uses PUT?

Posted: Sun Oct 16, 2016 12:39 pm
by bronson
Yep, that makes sense. Thanks! Do you have an opinion on the best way to fix this?
  • a PR to add PUT to ddns-gargoyle
  • a PR to add DDNS GET support to mail-in-a-box
  • just punt and hack it in bash
Like, would you prefer a PR heading your way or going somewhere else?

Re: New DDNS service that uses PUT?

Posted: Sun Oct 16, 2016 4:01 pm
by Rog66
Have you checked if its supported by dnsomatic? If so you can set it up on there and set dnsomatic up as your ddns provider on the router.

Re: New DDNS service that uses PUT?

Posted: Sun Oct 16, 2016 4:02 pm
by Lantis
If you are happy to write PUT support, sure.

If they are happy to accept GET, that's the simpler one for us. At which point a regular PR is fine.

Bash and CRON are good options, they just aren't "pretty"