Modify

Opened 4 years ago

Closed 3 years ago

#14019 closed defect (fixed)

LUCI DDNS scripts (luci-app-ddns) are missing "update_url" option

Reported by: valent.turkovic@… Owned by:
Priority: normal Milestone: Barrier Breaker 14.07
Component: luci Version: Trunk
Keywords: Cc:

Description

Hi,
I have used no-ip.com ddns provide manually (without LUCI) before without any issues, but when I started using LUCI now it stopped working.

It looks like luci doesn't support "update_url" option so it removes from configuration and that breaks DDNS scripts.

When I save config in luci and try to manually start it here is what I get as an output:

/usr/lib/ddns/dynamic_dns_updater.sh mydns
update_url=

Here is how config file looks like when created with LUCI:

config service 'myddns'
        option interface 'wan'
        option force_interval '12'
        option force_unit 'hours'
        option check_interval '10'
        option check_unit 'minutes'
        option enabled '1'
        option service_name 'no-ip.com'
        option username 'XXX'
        option password 'XXX'
        option ip_source 'web'
        option ip_url 'http://checkip.dyndns.com/'
        option domain 'XXX.no-ip.org'

There is no "update_url" defined, so this looked easy to fix, it just needs to have additional

option update_url 'http://[USERNAME]:[PASSWORD]@dynupdate.no-ip.com/nic/update?hostname=[DOMAIN]&myip=[IP]'

Attachments (0)

Change History (9)

comment:1 Changed 4 years ago by valent.turkovic@…

Update, this is not a LUCI issue, but it looks like DDNS scripts are broken somehow...

I see that no-ip.com is listed under /usr/lib/ddns/services but other scripts somehow ignore this info!

I tried using manual update via wget and that works ok, for example:

wget -s http://USER:PASS@dynupdate.no-ip.com/nic/update?hostname=DOMAIN.no-ip.org&myip=91.174.288.255

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 3 years ago by anonymous

I don't know if it is relevant at this point, but I just altered the dynamic_dns_updater.sh script by commenting out the line:

#service_id=$1

and then changing it to

#hardcoding the answer here
service_id=myddns

Seems to work decently as a workaround.

comment:4 Changed 3 years ago by chris5560

This did not fix the problem.
If you hard code the service you have no chance to run multiple services. You might need one for your Mail and one for your ftp .....
Take the current packages from BB14.07 or trunk

comment:5 Changed 3 years ago by anonymous

curl package is missing just install it: opkg install curl
it will works after

comment:6 Changed 3 years ago by chris5560

Hi anonym,
wget is working as wirtten above.
So, why curl package is missing. What should be the benefit ?

@ valent.turkovic
is your problem fixed, so the ticket could be closed ?
Otherwise please give me OpenWrt build and ddns-scripts version so I can have a look on it.

Christian

comment:7 Changed 3 years ago by chris5560

Could someone please close the ticket.
It looks outdated and ddns-scripts were moved to github.
Can't do it for you because because I have no rights to modify ticket.
Thanks
Christian

comment:8 Changed 3 years ago by valentt

Hmm, no, I can't change it. I only have option "leave as new" :(

comment:9 Changed 3 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.