Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:ddns:client [2024/10/03 21:56] – [Table] andrewz | docs:guide-user:services:ddns:client [2024/10/05 13:46] – [dynu.com] andrewz | ||
|---|---|---|---|
| Line 96: | Line 96: | ||
| ==== Web interface instructions ==== | ==== Web interface instructions ==== | ||
| The main settings you need to set: | The main settings you need to set: | ||
| - | | DDNS Service provider | Service provider name as it is known to OpenWrt | + | | DDNS Service provider | Service provider name as it is known to OpenWrt |
| - | | Lookup Hostname | The [[wp> | + | | Lookup Hostname | The [[wp> |
| - | | | + | | |
| - | | | + | | |
| - | | | + | | |
| - | | Interface | Network name used by OpenWrt hotplug event system to start // | + | | Interface | Network name used by OpenWrt hotplug event system to start // |
| * It is not allowed to use '' | * It is not allowed to use '' | ||
| Line 567: | Line 567: | ||
| </ | </ | ||
| - | ==== bind / nsupdate ==== | ||
| - | Last updated: 2021-10-23 | ||
| - | |||
| - | If you have your own domain and are running bind as your primary DNS server, you can use the [[packages: | ||
| - | |||
| - | - Configure bind to accept DNS updates using TSIG. | ||
| - | - Configure OpenWRT to send DNS updates to bind when the IP changes. | ||
| - | |||
| - | In the below example, we will use the following parameters: | ||
| - | * Domain name: **example.org** | ||
| - | * DNS Server: **ns.example.org** | ||
| - | * Router hostname: **openwrt.example.org** | ||
| - | |||
| - | === Configure Bind === | ||
| - | The first step is to set up bind to allow updates to the '' | ||
| - | < | ||
| - | $ / | ||
| - | # To activate this key, place the following in named.conf, and | ||
| - | # in a separate keyfile on the system or systems from which nsupdate | ||
| - | # will be run: | ||
| - | key " | ||
| - | algorithm hmac-sha256; | ||
| - | secret " | ||
| - | }; | ||
| - | |||
| - | # Then, in the " | ||
| - | # name " | ||
| - | # like this one, adjusted as needed for your preferred permissions: | ||
| - | update-policy { | ||
| - | grant ddns-key.openwrt.example.org name openwrt.example.org ANY; | ||
| - | }; | ||
| - | |||
| - | # After the keyfile has been placed, the following command will | ||
| - | # execute nsupdate using this key: | ||
| - | nsupdate -k < | ||
| - | </ | ||
| - | |||
| - | The two important things to note for the second part of the setup, on openwrt, are: | ||
| - | - Key Name: **ddns-key.openwrt.example.org** | ||
| - | - Shared Secret (Base64 encoded): **B1m6Xb1ngrEeNFSExr8homgfzeN8kWIBkJpnoAHF5D8=** (yours will differ as it is randomly generated) | ||
| - | |||
| - | You then need to do as the comments in the output say and put both the '' | ||
| - | |||
| - | To test that bind is now properly configured you can run a test as follows: | ||
| - | < | ||
| - | $ nsupdate | ||
| - | server ns.example.org | ||
| - | key hmac-sha256: | ||
| - | update del openwrt.example.org A | ||
| - | update add openwrt.example.org 600 A 10.10.10.10 | ||
| - | show | ||
| - | send | ||
| - | answer | ||
| - | quit | ||
| - | $ dig @ns.example.org openwrt.example.org A | ||
| - | </ | ||
| - | |||
| - | You should see no errors, and the '' | ||
| - | |||
| - | See also: [[https:// | ||
| - | |||
| - | === OpenWRT === | ||
| - | == LuCI == | ||
| - | To configure DDNS using the LuCI WUI, you will need to install the [[packages: | ||
| - | * Lookup Hostname: **openwrt.example.org** | ||
| - | * DDNS Service provider: **bind-nsupdate** | ||
| - | * Domain: **openwrt.example.org** | ||
| - | * Username: **hmac-sha256: | ||
| - | * Password: **B1m6Xb1ngrEeNFSExr8homgfzeN8kWIBkJpnoAHF5D8=** | ||
| - | * DNS-Server (on the Advanced Settings tab): **ns.example.org** | ||
| - | |||
| - | Then click **Save**, followed by **Save & Apply**. | ||
| - | |||
| - | Congratulations, | ||
| - | |||
| - | == UCI == | ||
| - | If you are not using LuCI and want to configure manually, you will need to edit ''/ | ||
| - | <file [enable_line_numbers=" | ||
| - | config ddns ' | ||
| - | option ddns_dateformat '%F %R' | ||
| - | option ddns_loglines ' | ||
| - | option ddns_rundir '/ | ||
| - | option ddns_logdir '/ | ||
| - | |||
| - | config service ' | ||
| - | option enabled ' | ||
| - | option lookup_host ' | ||
| - | option use_ipv6 ' | ||
| - | option service_name ' | ||
| - | option domain ' | ||
| - | option ip_source ' | ||
| - | option ip_network ' | ||
| - | option interface ' | ||
| - | option dns_server ' | ||
| - | option use_syslog ' | ||
| - | option check_unit ' | ||
| - | option force_unit ' | ||
| - | option retry_unit ' | ||
| - | option username ' | ||
| - | option password ' | ||
| - | </ | ||
| - | You can then add another stanza for IPv6, by turning on '' | ||
| ==== cloudflare.com ==== | ==== cloudflare.com ==== | ||
| Last updated: 2022-09-11 | Last updated: 2022-09-11 | ||
| Line 753: | Line 651: | ||
| For detailed instructions, | For detailed instructions, | ||
| + | |||
| + | ==== dynu.com ==== | ||
| + | Last updated: 2024-10-05 | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | It works out of the box in the standard most common setup with a single user-defined // | ||
| + | |||
| + | In order to update v4 or v6 IP address for a // | ||
| + | |||
| + | < | ||
| + | service_name delete / --custom-- | ||
| + | update_url api.dynu.com/ | ||
| + | domain [your 3rd level domain, like " | ||
| + | paramenc [your alias, like " | ||
| + | username [dummy, | ||
| + | password [your update token] | ||
| + | </ | ||
| + | This will update IPv6 address for '' | ||
| + | |||
| + | The //update token// used as a password in both standard and custom configurations is an MD5/SHA256 hash of "IP Update Password" | ||
| + | |||
| + | The hash can be generated on their [[https:// | ||
| + | |||
| ==== freedns.afraid.org ==== | ==== freedns.afraid.org ==== | ||
| Line 955: | Line 877: | ||
| ==== noip.com ==== | ==== noip.com ==== | ||
| - | Last updated: | + | Last updated: |
| - | [[http:// | + | [[http:// |
| :!: Install the [[packages: | :!: Install the [[packages: | ||
| - | The default is to use your '' | + | The default is to use '' |
| If you want to update multiple hosts inside one configuration/ | If you want to update multiple hosts inside one configuration/ | ||