← All guides
OpenWrt
Logged in, the setup assistant fills in your own host name and token.
OpenWrt uses the ddns-scripts package. HTTPS needs curl (or wget with SSL) and CA certificates.
- Install the packages: System → Software, or on the command line:
opkg update && opkg install ddns-scripts luci-app-ddns curl ca-bundle - Go to Services → Dynamic DNS, add a service and choose -- custom -- as DDNS service provider.
- Fill in the fields, tick Use HTTP Secure, set the CA certificates path to
/etc/ssl/certs, save and start the service.
| Field | Value |
|---|---|
| Lookup Hostname | <your-host>.dynr.net |
| Custom update-URL | http://[USERNAME]:[PASSWORD]@dynr.net/nic/update?hostname=[DOMAIN]&myip=[IP] |
| Domain | <your-host>.dynr.net |
| Username | <your-host>.dynr.net |
| Password | <your-token> |
Leave http:// in the URL: with Use HTTP Secure the script switches to HTTPS itself.
For IPv6 add a second service with IP address version: IPv6.
Or set everything up on the command line:
uci set ddns.dynr=service
uci set ddns.dynr.enabled='1'
uci set ddns.dynr.lookup_host='<your-host>.dynr.net'
uci set ddns.dynr.domain='<your-host>.dynr.net'
uci set ddns.dynr.username='<your-host>.dynr.net'
uci set ddns.dynr.password='<your-token>'
uci set ddns.dynr.update_url='http://[USERNAME]:[PASSWORD]@dynr.net/nic/update?hostname=[DOMAIN]&myip=[IP]'
uci set ddns.dynr.use_https='1'
uci set ddns.dynr.cacert='/etc/ssl/certs'
uci set ddns.dynr.ip_source='network'
uci set ddns.dynr.ip_network='wan'
uci set ddns.dynr.interface='wan'
uci commit ddns
/etc/init.d/ddns restart
Problems
- The log is under Services → Dynamic DNS → Log File Viewer.
badauth: username or password (token) is wrong.