OpenWRT Dynamic DNS
Create an API key for Dynamic DNS using the API keys page in the control panel.
It is recommended that you create credentials that only have access to the hostname that you want to update. The screenshot below shows how to create an API key with access to
curlpackages on your router, either through the web interface or by running:
opkg install luci-app-ddns curl
/etc/ddns/servicesand add the following line at the bottom (this should all be on a single line):
If you want to set an IPv6 address, create an additional entry as follows:
Go to the LuCI web interface and browse to the Services->Dynamic DNS tab, and use the following settings:
- Lookup hostname
- The fully-qualified hostname that you wish to update
- IP address version
- Select the address version (you probably want "IPv4-Address").
- DDNS provider
- Set to the same as lookup hostname.
- The username for your API key
- The secret for your API key
- Use HTTP Secure
- Check this box if your router has SSL support
Make sure the service is enabled, hit Save and Apply and then either reboot your router, or force the event interface down and up.
It should be possible to avoid the need to create a separate "v6.mythic-beasts.com" service by using the "force IP version" setting on the advanced tab, and an API hostname of "api.mythic-beasts.com", but this does not appear to work (tested in OpenWRT 19.07).