ddns-updater
ddns-updater copied to clipboard
Feature request: custom provider
- What's the feature?
Give users the ability to configure a custom provider. Looking at the current list of providers, I see a lot of providers are essentially calling one URL with a get request. We could give users the ability to define a url
{
"settings": [
{
"provider": "custom",
"domain": "example.com",
"url": "https://someddns.service/update?domain=mondomain.fr&monToken=token&monIP",
"displayName": "SomeDDNS"
}
]
}
- Extra information?
We could go further by letting the user define a return code or to let him define HTTP headers, however in most cases the response seems to be 200 and no extra header is needed
The cons I see of implementing this is that we won't know which provider users are using (without some kind of anonymous analytics on which user could opt out) The pros: less providers to implement, more providers supported by just documenting how to set them up
That's just a suggestion. As I'm using wildcard records with gandi and ovh I don't use this kind of paradigm. But I think that it could reduce the amount of code to maintain. And writing doc is sure less fun than coding but way faster ^^
A few of them use the dyndns protocol with tiny variations. We could tackle that 👍
But otherwise, it's highly variable between each provider and not just a GET request.
Done in 0c561d437816022383a89076850e10642ca142a9
Documentation is at https://github.com/qdm12/ddns-updater/blob/master/docs/custom.md
It's sort of simple for now, but could be extended to some extent until implementing the provider specific code in Go would be simpler.