New DDNS service that uses PUT?

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
bronson
Posts: 10
Joined: Wed Oct 05, 2016 12:08 pm

New DDNS service that uses PUT?

Post 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

Lantis
Moderator
Posts: 6756
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: New DDNS service that uses PUT?

Post by Lantis »

It would be reasonably complicated to write it in.
You'd have to modify ewget.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

bronson
Posts: 10
Joined: Wed Oct 05, 2016 12:08 pm

Re: New DDNS service that uses PUT?

Post 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?

Rog66
Posts: 206
Joined: Fri Jan 04, 2013 4:53 pm

Re: New DDNS service that uses PUT?

Post 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.

Lantis
Moderator
Posts: 6756
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: New DDNS service that uses PUT?

Post 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"
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply