Dyn DDNS on EdgeRouter

Hey! Listen! This post is part of a series on the Ubiquiti EdgeRouter Lite. Check them all out!

DateURLPart
2017-10-03Dyn DDNS on EdgeRouter
  • Setup DynDNS
  • 2017-04-25DuckDNS on EdgeRouter
  • Setup DuckDNS
  • 2017-01-08Ubiquiti EdgeRouter serial console settings
  • Serial console settings
  • 2016-11-29Ubiquiti UniFi controller setup on Raspberry Pi 3
  • Install UniFi Controller
  • 2016-08-30EdgeRouter Lite Dnsmasq setup
  • Setup dnsmasq
  • 2016-06-13EdgeRouter Lite software upgrade
  • Firmware upgrade
  • 2016-05-12EdgeRouter Lite OpenVPN setup
  • OpenVPN server setup
  • 2016-04-29Ubiquiti EdgeRouter Lite setup
  • Initial setup
  • Introduction

    In the past, I’ve posted about my DuckDNS dynamic DNS settings, and mentioned I use Dyn as well. My Dyn setup is documented below.

    I should mention, however, that Dyn no longer offers free dynamic DNS (it was discontinued in 2014). They now charge $40/year for 30 hostnames.

    Dyn setup

    Web setup

    Head over to the Dyn website and setup an account. Create a new hostname, choosing the TLD from the available options. For this setup, just click Your current location’s IP address to continue through to this process.

    Go to your Account Settings page and make note of the Updater Client Key. If you don’t have one, generate one.

    Router setup

    EdgeOS only supports a handful of pre-configured DNS service providers by default (shown below).

    ubnt@erl# set service dns dynamic interface eth0 service
    afraid       dslreports   easydns      noip         zoneedit
    dnspark      dyndns       namecheap    sitelutions

    Luckily, Dyn is one of the providers.

    set service dns dynamic interface eth0 service dyndns
    set service dns dynamic interface eth0 service dyndns host-name loganmarchione.dyndns.org
    set service dns dynamic interface eth0 service dyndns login username
    set service dns dynamic interface eth0 service dyndns password updater-client-key
    set service dns dynamic interface eth0 service dyndns protocol dyndns2
    set service dns dynamic interface eth0 service dyndns server members.dyndns.org
    commit
    save
    exit

    A couple notes on the options:

    • the hostname is the entire domain (e.g., loganmarchione.dyndns.org)
    • the username is your account name
    • the password is your updater client key (that long string of numbers/letters)

    Verify setup

    Trigger a manual update. EdgeOS will only update the dynamic DNS provider when your IP address actually changes.

    update dns dynamic interface eth0

    You can show the status with the command below.

    show dns dynamic status

    Here, you can see the successful update.

    interface    : eth0
    ip address   : XX.XX.XX.XX
    host-name    : loganmarchione.dyndns.org
    last update  : Tue Apr 25 22:13:09 2017
    update-status: good

    SSL settings

    Also, just so you know, EdgeOS uses ddclient for the dynamic DNS updates. The configuration file is located at /etc/ddclient.conf, but there is a directory at /etc/ddclient with a configuration file for each interface. By default, ddclient is setup to use SSL, as shown below.

    root@erl:~# grep ssl /etc/ddclient/ddclient_eth*.conf
    ssl=yes

     

    Hope this helps!

    Logan

    7 thoughts on “Dyn DDNS on EdgeRouter”

    1. Hey Logan,

      Thank you for your clear guides!
      I’m trying to configure a pptp vpn on an Edgerouter X with dyndns. Basically what I’m trying to do is connect to a vpn using my dyndns hostname. Unfortunately I have not successfully done this. If I try to connect directly from the LAN to the router’s IP, the connection is successfully, but if I try from the outside, the connection refuses.

      Any orientation or guide you can give me to this?

      Thank you, in advance.

      Kind regards.

      Kevin

    Leave a Comment

    This site uses Akismet to reduce spam. Learn how your comment data is processed.