6

[Edit: I have now found a solution; see below for my answer]

I want to set up dynamic DNS on my Fritz!Box 7490, so that it is reachable both on IPv4 and IPv6. Note that I want to reach the Fritz!Box itself, and not a computer behind it.

The scenario is that I have both native IPv4 and native IPv6 as dual stack, and both IPv4 and IPv6 are dynamically assigned by my ISP.

I am currently using freedns.afraid.org but would be open for other services as well if what I want can be achieved.

The issue I am facing is that the Fritz!Box GUI only allows for one update URL. In that update URL, I can use one of these three options:

  • Automatic IP address detection (which uses IPv4): http:⁄⁄freedns.afraid.org⁄dynamic⁄update.php?MY-SECRET-TOKEN
  • Pass IPv4 address to freedns.afraid.org: http:⁄⁄freedns.afraid.org⁄dynamic⁄update.php?MY-SECRET-TOKEN&address=<ipaddr>
  • Pass IPv6 address to freedns.afraid.org: http:⁄⁄freedns.afraid.org⁄dynamic⁄update.php?MY-SECRET-TOKEN&address=<ip6addr>

However, what I would need is a link that updates both the IPv4 and the IPv6 address at the same time.

I have seen Dynamic DNS at freedns.afraid.org using a Fritz!Box - this helped as it showed me the <ip6addr> tag, but the person asking the question only wanted to update the IPv6 address, so it is not applicable to me.

7 Answers7

7

Answering my own question as I have now found a solution.

I am now using the service nsupdate.info, which supports what I want: Both IPv4 and IPv6 are reached using the same name, for which both A and AAAA records are provided.

They had specific instructions for the Fritz!Box, which were shown when I was setting up my account. I repeat here what I have in my Fritz!Box settings now:

Dynamic DNS provider: User-defined

Update URL: https://ipv4.nsupdate.info/nic/update https://ipv6.nsupdate.info/nic/update

Domain name: mydomainname.nsupdate.info

User name: mydomainname.nsupdate.info

Password: [as provided by nsupdate.info]

I have been using this service for just over half a year now, and it works flawlessly so far (but I am not logging into my Fritz!Box daily, so your mileage may vary). Apologies for not replying earlier, but I completely forgot about this question, and just received a reminder e-mail as someone else wrote a comment.

Hope this helps others!

6

The answer is very simple: you just have to enter both update URLs with one blank in between:

https://freedns.afraid.org/dynamic/update.php?[MY-SECRET-TOKEN4]&address=<ipaddr> https://freedns.afraid.org/dynamic/update.php?[MY-SECRET-TOKEN6]&address=<ip6addr>

Works with my FRITZ!Box 7390.

drac
  • 61
2

First of all, I think it is a really stupid idea to give people dynamic IPv6 addresses. Those IPv6 addresses are used in people's internal networks, and changing them all the time makes it really hard to do manage them.

The difference between IPv4 and IPv6 is that you probably only have one IPv4 address. This address belongs to the Fritz!Box, which uses NAT to allow systems on the LAN to access the internet. With IPv6 every system has its own IPv6 address(es). In that situation it might be easier to have every system register their own IPv6 address in the dynamic DNS. It then of course depends on the system if they can actually do that...

1

I stumbeled over the same issue. I have a private IP4 and a IP6 what is somehow official. The target was to update the records at freedns.afraid.org with this information for the same hostname. I created two entry's for the same hostname e.g.

  • DNSTest6and4.mooo.com A
  • DNSTest6and4.mooo.com AAAA

Then update the A-Record (IPV4) with something like: /usr/bin/curl -k "http://{User-IDAfraid}:{PWAfraid}@freedns.afraid.org/nic/update?hostname=DNSTest6and4.mooo.com&myip=10.1.12.119"

Note: Of course I used some logic in a script to find out the actual IP4 of the Interface!

Update the AAAA-Record (IPV6) with the V6 sync Interface of Afraid e.g.: /usr/bin/curl -k "http://v6.sync.afraid.org/u/{Afraid-ID-String}/"

Get the correct {Afraid-ID-String} for your Host via the "Version 2 of the dynamic update interface" of afraid.org https://freedns.afraid.org/dynamic/v2/ It is lined up just right beside your AAAA-Host-Record. This somehow magically works, it looks for me as afraid.org is using the IPV6 that has send out the message as the IPV6 to store to the AAAA-Record of the Host.

That is now working for me as expected

K.

0

This bash stuff does the job for me. Make sure you have bash, curl, grep, awk.

ipv6=$(ip -6 a | egrep "inet6.*scope global" --max-count=1 | awk '{print $2}' | awk -F "/" '{print $1}')
curl "https://freedns.afraid.org/dynamic/update.php?[MY-SECRET-TOKEN6]&address=$ipv6"
curl -4 "https://freedns.afraid.org/dynamic/update.php?[MY-SECRET-TOKEN4]"
0

I use duiadns.net on my FritzBox router. This link will update both ipv4 and ipv6 (please replace host & md5 password): http://ip.duia.ro/dynamic.duia?host=example.duia.eu&password=79dcca5af01847d34d07c4fae3dc5a13&ip4=127.0.0.1&ip6=::1

Liviu
  • 1
-3

not sure this is still an issue, but I was able to successfully update the IPv4 and IPv6 DynDNS addresses with just one single update link:

http:⁄⁄freedns.afraid.org⁄dynamic⁄update.php?MY-SECRET-TOKEN-OF-IP4HOST&address=?MY-SECRET-TOKEN-OF-IP6HOST&address=

Regards, Arnie

Update: although it shows 'angemeldet' for both IPv4 and IPv6 now, it did not update the IPv4 address. Will try tomorrow using inadyn-mt on the router. On my local linux servers this works fine. Inadyn-mt is available as freetz package.

Arnie
  • 1