TP-Link TL-WR1043ND – Openwrt – Ch02_DDNS

0) Briefing

  • Up until now
    • OpenWrt installed, password set = ssh enable, Wifi enable
    • 4.785MB memory left (4900B) from fresh
  • What next
    • First time login router with SSH
    • Install software from Command-line-interface
    • Install DDNS client
    • Link account to router


1) Login router with SSH

  • In Microsoft Windows, use PuTTY (Download here)
    The rest of the instruction will be using Linux. Seriously, if you do not know how to use Linux command-line, you will have not hope working with the router. OpenWrt is just another version of Linux.
  • In Linux, open up your favorite terminal.
  • Type in the following command
    ssh [email protected]


2) Install DDNS client

  • Update the local software database, so you will know what are available to you.
    The database is stored in RAM and will lost at each reboot.

    opkg update
  • To read the software list
    opkg list
  • Try to pin point the DDNS software
    opkg list | grep -a ddns
  • Install the DDNS software, this is for CLI settings only
    opkg install ddns-scripts
  • If you want to set DDNS through web page ( they call the web page software “LuCI”), you install this instead
    opkg install luci-app-ddns


3) Setup DDNS client with

  • The DDNS client is kind of working with, just beware how I use the update code as password.
  • “vi” is a text editor in Linux. It is a bit tricky to understand how it works. However, it is a very powerful editor. ( Click here to learn how to use )
  • Edit the following config file
    vi /etc/config/ddns
  • Edit the followings
    • option enabled          “1”
    • option service_name     “”
      you must use the above name for service_name for FreeDNS
    • option domain           “”
    • option username         “abcd”
    • option password         “use_your_update_code_as_password”
      you can find this from their web page: For Members -> Dynamic DNS -> Direct URL
    • option ip_source        “web”
    • option ip_url           “


  • To kick off the service, trigger the WAN interface
    ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface
  • To confirm, use this command

    Look for the following : {dynamic_dns_upd} /bin/sh /usr/lib/ddns/ myddns 0


Appendix : References


  1. brianlhm

    “” <—- This is the URL, use it as the option ip_url

Comments are closed.