OpenWrt Forum Archive

Topic: IPv6 for dyndns

The content of this topic has been archived on 24 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone,

How do I get the ddns scripts to be updated to support IPv6?
I have installed luci-app-ddns, but I noticed that if I try to configure IPv6 to update dyndns.org, IPv6 is not supported.

However, according to http://www.dyncommunity.com/questions/3 … dress.html , IPv6 is supported via this URL example: https://members.dyndns.org/nic/update?h … 0a:14d0::3

If I would like to add this via custom script on my own, how would I achieve this?

Thank you.

(Last edited by chuacw on 13 Jan 2016, 00:02)

In modern versions of openwrt custom scripts are supported.

/etc/config/ddns :

config service 'nstest'
    option domain 'testupdate.dyn.domain.com'
    option password 'testpass'
    option ip_source 'network'
    option interface 'wan'
    option ip_network 'wan'
    option use_syslog '2'
    option use_logfile '1'
    option enabled '1'
    option update_script '/usr/lib/ddns/nsupdate2.sh'
    option username 'testuser'
    option check_interval '1'
    option check_unit 'hours'

Also can configure it with luci but at the moment there's bug in trunk version that doesnt allow to save any ddns entry. Hopefully devs will fix soon.

Script gets parameters via environment variables.
You can first create test script something like that :

#!/bin/sh

set >/tmp/set.txt

Then forcibly run update with '/lib/ddns/dynamic_dns_updater.sh nstest'
and see /tmp/set.txt. You will find correct envs.


But before doing that make sure you cant do your job with custom update url if your updater is http(s) based.

(Last edited by bolvan on 12 Jan 2016, 11:34)

Thanks, Bolvan!

How would I test if (or add)  dyndns.org is supported for IPv6? I'm using the latest ddns script downloaded yesterday, and the listed providers for IPv6 are:

freedns.afraid.org
he.net
loopia.se
mydns.jp
no-ip.pl
spdns.de
variomedia.de

(Last edited by chuacw on 13 Jan 2016, 00:02)

@chuacw
Select as Service "-custom-" (press the "change service" button if shown) and set update_url to:
http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]
I will implement the url into services_ipv6 file with the next update.

@bolvan
The problem is that the default configuration is pointing to an unknown service and a [Change Service] button is shown.
Try to press this button first. This should enable you to save your config without problems.
I working on fix but be a little short on time. Sorry.

@chris5560 thank you! Got it working!

The discussion might have continued from here.