ddns-scripts: Add tb.netassist.ua as service#27960
ddns-scripts: Add tb.netassist.ua as service#27960kbabioch wants to merge 1 commit intoopenwrt:masterfrom
Conversation
|
By the way: What is the policy on bumping |
|
Normally, |
This adds support for tb.nettassist.ua as requested by [1]. The service seems to have a somewhat broken API in that it returns `OK!` for the first update, but will return `FAIL!` for any consecutive update with the same IP. For example: ``` curl "https://tb.netassist.ua/autochangeip.php?l=[USERNAME]&p=[PASSWORD]&ip=1.2.3.4" OK! The IP will be updated in 60 seconds.% curl "https://tb.netassist.ua/autochangeip.php?l=[USERNAME]&p=[PASSWORD]&ip=1.2.3.4" FAIL! IPv4 address you entered "<b>1.2.3.4</b>" is already registered in our system for another customer. Try another one. Sorry.% ``` On the other hand, it doesn't feel right to add `FAIL!` as expected response for an successful update. If anything, the service provider should be contacted and asked to fix the API. [1]: openwrt#25861 Signed-off-by: Karol Babioch <[email protected]>
bdbec53 to
7d6e6a1
Compare
This is a violation of idempotency. At worst - they can return a 'nochg'. Who is to say that several DNS names cannot point to the same IP anyway? |
Yes, I agree. Seems like a stupid restriction. I'm just reporting my findings while working on #25861, I'm not running the service myself. I've also contacted the provider in the mean time, let's see if and how they'll react. |
📦 Package Details
Maintainer: @feckert
Description:
This adds support for tb.nettassist.ua as requested by 1.
The service seems to have a somewhat broken API in that it returns
OK!for the first update, but will returnFAIL!for any consecutive update with the same IP.For example:
On the other hand, it doesn't feel right to add
FAIL!as expected response for an successful update.If anything, the service provider should be contacted and asked to fix the API.
✅ Formalities