EdgeRouter - Custom Dynamic DNS

 Overview


This article provides instructions and an example on how to add a customer dynamic DNS server to EdgeRouter. It was created on EdgeOS v1.9.1.

Table of Contents


  1. Steps - Configure a Dynamic DNS
  2. Steps - Test the Dynamic DNS Status
  3. Related Articles

Steps - Configure a Dynamic DNS


Back to Top

In this example we will use Cloudflare dynamic DNS service as an example.

1. Set hostname

set service dns dynamic interface eth0 service custom-cloudflare host-name <www.hosname.com>

2. Set login

set service dns dynamic interface eth0 service custom-cloudflare login <cloudflare username>

3. Set password

set service dns dynamic interface eth0 service custom-cloudflare password <password key>

4. Set protocol

set service dns dynamic interface eth0 service custom-cloudflare protocol cloudflare

5. Set server

set service dns dynamic interface eth0 service custom-cloudflare server www.cloudflare.com

6. Set options

set service dns dynamic interface eth0 service custom-cloudflare options "zone=<hostname>.com"

Steps - Test the Dynamic DNS Status


Back to Top

It may take some time for the servers to update and resolve the hostname to the correct address. Wait before proceeding to test. To verify that the connection to the DDNS service is up use this command:

admin@ubnt:~$ show dns dynamic status 
interface    : eth0
ip address   : <PublicIP>
host-name    : <hostname>
last update  : Thu Mar 30 13:29:42 2017
update-status: good

If the dig utility is installed on a client, you may use this utility to verify the resolution.

computer:~ user$ dig amazon.com

; <<>> DiG 9.8.3-P1 <<>> amazon.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43769
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;amazon.com. IN A

;; ANSWER SECTION:
amazon.com. 46 IN A 54.239.17.6

;; Query time: 26 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Mar 31 15:27:19 2017
;; MSG SIZE  rcvd: 124

Related Articles


Back to Top

EdgeRouter - Dynamic DNS commands