Readers will learn how to configure Dynamic DNS on the EdgeRouter using the CLI.
The following Dynamic DNS services are available for use in EdgeOS:
dnspark dyndns namecheap zoneedit dslreports easydns sitelutions
afraid (as of OS Version 1.3)
To configure a dynamic DNS client, use the following commands:
configure set service dns dynamic interface eth0 service <dyndnsservice> host-name <host> set service dns dynamic interface eth0 service <dyndnsservice> login <username> set service dns dynamic interface eth0 service <dyndnsservice> password <password> commit save exit
After configuring the Dynamic DNS service on the EdgeRouter, you can view status information for the servince using the show dns dynamic status command:
ubnt@ubnt:~$ show dns dynamic status interface : eth0 ip address : 10.1.0.124 host-name : somehost.host.com last update : Wed Dec 31 16:00:00 1969 update-status: good
1. There is a known issue with Sitelutions service. The host-name is the serial number of the record created on the Sitelutions website. When the serial number is used the service works as expected.
2. When using afraid.org, you must also set the server address as follows:
configure set service dns dynamic interface eth0 service afraid server freedns.afraid.org commit save exit
3. By default, EdgeOS will only update the dynamic service when your IP address actually changes. There may be times when you wish to force an update. For example, if another device at another location is configured to use the same dynamic DNS and changes the registered IP address, you might want to force EdgeOS to refresh the registration with the correct IP. In that case, issue the update dns dynamic interface <interface name>. For example, if you use eth0 for internet:
update dns dynamic interface eth0