DDNS.org - openWRT configuration


This dynDNS configuration applies to:
Type Firmware
Brand openWRT
Model All versions starting from 17.01.0
Official Website https://openwrt.org/docs/guide-user/base-system/ddns
Configuration Use Provided Configuration

DDNS.ORG MIkrotik configuration

{primary} To configure a router based on openWRT firmware with DDNS.org service you should use the provided configuration.

  • Step 1

    Connect to the router using a Terminal (like puTTY).

  • Step 2

    Install the ddns package and activate it

opkg update
opkg install ddns-scripts
ddns-scripts
  • Step 3

    Edit the file at /etc/config/ddns and paste the following configuration.

    Remember to substitute in the following configuration your values for YOURUSERNAME, YOURPASSWORD, YOURHOSTNAME getting the values from your ddns.org account

config service "ddns-org"
        option enabled          "1"
        option domain           "YOURHOSTNAME"
        option username         "YOURUSERNAME"
        option password         "YOURPASSWORD"
        option interface        "wan"
        option ip_source        "network"
        option ip_network       "wan"
        option force_interval   "24"
        option force_unit       "hours"
        option check_interval   "10"
        option check_unit       "minutes" 
        option update_url       "http://update.ddns.org/nic/update?hostname=[DOMAIN]&token=[PASSWORD]"

        # ENABLE FOLLOWING OPTIONS IF YOU INSTALLED cacert.pem on router
        #option use_https       "1"
        #option cacert          "/etc/ssl/certs/cacert.pem"
  • Step 4

    After editing the configuration file, you can start the new configuration

sh
. /usr/lib/ddns/dynamic_dns_functions.sh # note the leading period
start_daemon_for_all_ddns_sections "wan"
exit
  • Step 5

    Optionally you can check that everything is correct using the following command that updates the ddns.org

/usr/lib/ddns/dynamic_dns_updater.sh ddns.org

Notes

With this configuration, the router will:

  • uses the IP on the wan interface (external)
  • sends an update when the IP changes
  • checks IP changes every 10 minutes
  • send a forced update every 24 hours
  • uses HTTP protocol if you don't install root certificates and enable https

Conclusion

If have doubts or problems configuring the mikrotik router with DDNS.org you can check the Troubleshooting page or contact the support from your account using the Support Request form.