DDNS settings can not get working

Hi,

I am attempting to install a ddns-updater on OpenWrt but I have forgot what I need to do in order to get it working correctly. So far I have installed "luci-app-ddns" and am using this configuration in " /etc/config/ddns".

#
  # Please read https://openwrt.org/docs/guide-user/base-system/ddns
  #
  config ddns "global"
          option ddns_dateformat "%F %R"
  #       option ddns_rundir "/var/run/ddns"
  #       option ddns_logdir "/var/log/ddns"
          option ddns_loglines "250"
          option upd_privateip "0"
 config service 'service'
 option check_interval '10'
 option check_unit 'minutes'
 option enabled '1'
option domain 'service.twilightparadox.com'
option force_interval '24'
 option force_unit 'hours'
 option service_name 'freedns.afraid.org'
 option username 'my email@email.com'
 option password 'password provided by ddns service'
 option ip_source 'network'
 option ip_network 'wwan'

 config service "myddns_ipv6"
        option update_url       "http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update>
         option lookup_host      "yourhost.example.com"
         option domain           "yourhost.example.com"
         option username         "your_username"
         option password         "your_password"
         option use_ipv6         "1"
         option interface        "wan6"
         option ip_source        "network"
         option ip_network       "wan6"

Howerver, I am only using ipv4 but I can neither the ddns-updater work regardless of if the ipv6 information iWhat am I mis included in the configuration or not. Luci still reports the service is not running that the configuration is mis-configured. What am I missing?

Thanks,

Aaron

Does your setting only work with IPv4 or not at all and how do you know?
Does it look like see screenshot below?

Which DDNS provider are you using?

I doesn't work at all! it says the configuration in the file is wrong.

why wwan and not wan, what's upstream of your openwrt device ?

I also have this DDNS provider it is very simple and can be done with the GUI if you have installed the ddns scripts you can choose for DDNS Service provider: afraid.org-basicauth this is what you should have installed:

root@R7800-2:~# opkg list-installed | grep ddns
ddns-scripts - 2.8.2-43
ddns-scripts-services - 2.8.2-43
luci-app-ddns - git-25.088.25299-77109ee

1 Like

Please see "Option 1" here:

As always, make sure you have installed curl and hostip (or drill or another similar tool) and configured certificate path as /etc/ssl/certs/ca-certificates.crt, and finally ticked "Use HTTP Secure" in Luci.

If the problem persists - show the recent DDNS client log.

@frollic
I needed to use relayd in-order to get the wifi working and it was advised to deleted the wan interfaces if not being used. Yeks! ah, I know it is weird to create I new interface just for wifi but for some reason putting wifi on the wan interface was having problems.

@egc Thanks! Will see if I can get it working following you methed.

@AndrewZ Will have a look! Thanks.

Thanks guys finally got it working! Need to make sure the name of the new service I setup in Luci was the same as the service name I had put in the configuration file.

1 Like

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