Overview
Readers will learn how to configure Dynamic DNS on the EdgeRouter using a custom service. See our Built-in Dynamic DNS article for more information on how to use the built-in services.
Configuring a Custom Dynamic DNS Service
In this example, the Cloudflare Dynamic DNS service is used.
1. Enter configuration mode.
configure
2. Configure the dynamic DNS hostname.
set service dns dynamic interface eth0 service custom-cloudflare host-name <subdomain.domain.com>
3. Define the dynamic DNS credentials.
set service dns dynamic interface eth0 service custom-cloudflare login <user@domain.com>
set service dns dynamic interface eth0 service custom-cloudflare password <cloudflare-api-key>
4. Define the dynamic DNS protocol.
set service dns dynamic interface eth0 service custom-cloudflare protocol cloudflare
5. Specify a domain name for the Cloudflare zone.
set service dns dynamic interface eth0 service custom-cloudflare options zone=domain.com
6. Commit the changes and save the configuration.
commit ; save
7. Specify the remote server.
set service dns dynamic interface eth0 service custom-cloudflare server api.cloudflare.com/client/v4/
You can verify the status and force an update of the Dynamic DNS service using the commands below:
show dns dynamic status
update dns dynamic interface <interface-name>
Related Articles
EdgeRouter - Built-in Dynamic DNS
Intro to Networking - How to Establish a Connection Using SSH