OpenWrt Forum Archive

Topic: ddns-script problem

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everyone !!

I encounter some strange problem when i try to update my dyndns account using ddns-scripts


first the countain of my ddns in /etc/config

config service "mydyndns"


        option enabled "1"

        option service_name "dyndns.org"
         option domain "myusername.dyndns.org"
        option username "mysuername"
        option password "mypassword"

        option ip_source "web"
        option ip_url "http://www.whatismyip.com/automation/n09230945.asp"

        option force_interval "72"
        option force_unit "hours"

        option check_interval "10"
        option check_unit "minutes"

after that when i try to launch the script dynamic_dns_updater.sh in /usr/lib/ddns

it show me this error message

"ERRROR: You must specify a service id (the section name in the /etc/config/ddns file) to initialize dynamic DNS."

Can someone explain me what is this service id and where I can set it

You must launch `dynamic_dns_updater.sh mydyndns`. 

But then you will run into a bug where your IP never gets updated because you are using the web detect method.  https://dev.openwrt.org/ticket/5327

If you are willing to change the 2 lines in dynamic_dns_updater.sh and add the url_escape.sed it should solve that problem.

E.g.: 'ifup wan'.

or You can also simulate a hotplug event to trigger a DDNS update manually:

root@OpenWrt:~# ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface

(Last edited by Yanira on 14 Jun 2009, 18:19)

first of all thanks for your fast reply

everything is ok now.

(Last edited by ancient-spells on 15 Jun 2009, 06:29)

The discussion might have continued from here.