In this guide we’ll see how to setup SafeDNS on OpenWRT routers with dynamic IP address.

If you have static IP or use some DynDNS service you can setup SafeDNS on your DD-WRT router as on any other router as described in this guide.
  1. Setup DDNS client. Select in menu System -> Software.

    safedns-openwrt
    1. Click Update lists.

      safedns-openwrt
    2. Type luci-app-ddns in Download and install package and click OK.

      safedns-openwrtsafedns-openwrt
  2. Click Status in menu to refresh menu. New item Services and subitem Dynamic DNS will appear in menu.

    safedns-openwrt
  3. Fill form on page Dynamic DNS.

    1. In Custom update-URL copy string:

      https://[USERNAME]:[PASSWORD]@www.safedns.com/nic/update?hostname=[DOMAIN]
    2. In Hostname type something unique for every router if you have several routers.

    3. In Username type login for SafeDNS site, in Password type password for SafeDNS site.

    4. Click Save & Apply

  4. Enable and start DDNS service.

    1. Select in menu System -> Startup

      safedns-openwrt
    2. Click Disabled button for ddns service, then click Start.

      safedns-openwrt
  5. Check string appearing in system log (Status -> System log):

    user.notice ddns-scripts-myddns: Update successful
  6. Select in menu (Network -> Interfaces, WAN). In Use custom DNS servers add 195.46.39.39 and 195.46.39.40. Click Save & Apply.