DDNS is not starting

Dear all,
I'm working with duckdns and try to configure it in openwrt. Attached a picture,
First you can see LUCI after reboot device.
DDNS Autostart is enable
Service (only one) for duckdns is enable but NOT RUNNING.

After I have pushed RELOAD button in Service (DuckDNS), first time is working properly. (Duckdns is updated and I can read it), Then, For me, configuration is fine for duckdns
Same happens if I push RESTART DDNS buttom.

My question is, why service is not running from begining ? Why it need that I push the RELOAD buttom ??

Picture 1:

Thanks for all.

Show your DDNS config as text.

2 Likes

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/ddns
logread -e ddns
1 Like

Hi all, Thanks for the support.
update url -> I'm not using [IP], in that way duckdns is taking directly my ip

config ddns 'global'
        option ddns_dateformat '%F %R'
        option ddns_loglines '250'
        option ddns_rundir '/var/run/ddns'
        option ddns_logdir '/var/log/ddns'

config service 'DuckDNS_ipv4'
        option enabled '1'
        option username 'xxxxxxxxxxxxxxxx'
        option domain 'xxxxxxxxxxxxxxxx.duckdns.org'
        option password 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
        option ip_source 'web'
        option ip_url 'http://checkip.dyndns.com'
        option check_interval '1'
        option check_unit 'hours'
        option update_url 'https://www.duckdns.org/update?domains=xxxxxxxxxxxxxxxx.duckdns.org&token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
        option lookup_host 'xxxxxxxxxxxxxxxx.duckdns.org'
        option use_ipv6 '0'
        option use_syslog '2'
        option force_unit 'minutes'
        option retry_unit 'seconds'
        option use_https '1'

thanks in advance.

There is a package available for duckdns, so custom configuration could be avoided.

You don't need to use https in the update_url, even if you intend using https.
Even if IP autodetection is required, you need to add to the URL &ip= without a value according to their instructions and examples.
There is no need to add .duckdns.org in the domain field.

If you use use_https you usually need to add a path to ca-certificates.
Make sure you have curl installed.

My personal recommendation is to avoid using duckdns. A few months ago I've seen a lot of regular timeouts for DNS lookups against their domain.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.