[luci-app-ddns] unnecessarily requires <query> in url string
See original GitHub issueProcedure:
set up an DDNS provider as “-custom-” provider and filling out the “cutom update-url” field like this:
http://some.domain./RANDOMTOKEN123/
Result:
get the error: "openwrt Custom update-URL: <QUERY> missing / required"
and can’t finfish the setup.
Explanation: luci-app-ddns expects the update-url to contain a “?”-symbol as inicator for a query. but some ddns-services don’t use the query part for updating the ip.
Expected Result: can finish the setup even without a “?” in the update-url.
Workaround:
just put a “?” at the end of the update-url, as it shouldn’t matter. so it looks like:
http://some.domain./RANDOMTOKEN123/?
affected dyndns service: afraid.org
lede version: LEDE Reboot 17.01.2 r3435-65eec8bd5f’
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
OK to skip slash before query string? - Stack Overflow
As a matter of modern spec, yes, it is permissible to skip the slash, contrary to what the accepted answer here claims.
Read more >A Beginner's Guide to URL Parameters - Semrush
In this comprehensive guide, we explore the ins and outs of URL parameters. Discover now how to use query strings without hurting your ......
Read more >getQueryParam | Adobe Analytics - Experience League
If you only have simple query string parameter needs, Adobe recommends using the URL parameter features using the Web SDK or the Adobe ......
Read more >An SEO Guide to URL Parameter Handling
Look in Google Search Console URL Parameters Tool: Google auto-adds the query strings it finds. Review your log files: See if Googlebot is ......
Read more >Query string - Wikipedia
A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure if I completely understand your question. With the randomized Token there is no IP you can set. It’s autodetected at the afraid server. With the other methods e.g. “username and password inline” you can set the IP in the URL.
I think all the old update hosts are still valid. But they also have new ones. So it seems afraid.org has two major versions for their dynamic dns interface.
The first (old) Version supports a randomized URL with nothing to configure. It looks like this:
https://freedns.afraid.org/dynamic/update.php?xxxxxxxxxxxr4nd0mT0kenxxxxxxx=
and a second (old) method is this:http://[USERNAME]:[PASSWORD]@freedns.afraid.org/nic/update?hostname=[DOMAIN]&myip=[IP]
Then there are four “new” Methods in the “updated iterface v2”: Method 1: “Randomized Update Token”
http://sync.afraid.org/u/r4nd0mT0ken/
Method 2: “Username and Password, inline” ( IP may be optional? , hadn’t time to test it )http://sync.afraid.org/u/?u=[USERNAME]&p=[PASSWORD&h=[DOMAIN]&ip=[IP]
Method 3: “Username and Password”http://[USERNAME]:[PASSWORD]@sync.afraid.org/u/?h=[DOMAIN]&ip=[IP]
Method 4: “/nic/update”http://[USERNAME]:[PASSWORD]@sync.afraid.org/nic/update?hostname=[DOMAIN]&myip=[IP]
That are all methods i found on their website. Just ask if you need aditional information/help.
It’s still not working. I did exactly as @james-knippes did but the ddns server did not update my IP. Finally I found a workaround to solve it: In advanced settings I selected as IP address source the option URL and I put the URL “http://sync.afraid.org/u/R4nd0MT0KEN/” in the “URL to detect [IPv4]” text field. It finally worked, but is not a neat solution at all.
Thanks guys.