fuse314 / infomaniak-synology-ddns-IPv6

DynDNS including IPv6 for Infomaniak

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Synology-DDNS-IPv6

Synology DSM has still very limited support for DynDNS including IPv6. Except for synology.me, only IPv4 is supported for all the pre-configured providers. As long as the Internet provider assigns static IPv6 addresses, this is not a problem. In Germany and Switzerland, however, many providers are using dynamic IPv6 prefixes for private individuals, which change each time a new connection is established.

Your internet router may support DDNS including IPv6, but it will not be a solution to access your Synology over IPv6 from outside. There is a single IPv4 global address (common for the router and e.g. your Synology), but there are different global IPv6 addresses for the router and your Synology. Therefore an DynDNS update routine including IPv6 on the Synology is required to make services on the Synology via IPv6 available from outside and not only your router.

On your Synology device in the folder /usr/syno/bin/ddns/ there are scripts for some providers. If you are going to "Add" in the control panel under "External Access", "DDNS" you will find in the dropdown for "Service Providers" the entries from the file /etc.defaults/ddns_provider.conf.

With the following steps you can use a sub domain of your domain hosted at Infomaniak to access your Synology including IPv6:

  1. Follow the instructions under infomaniak.com FAQ 2357 to setup a sub domain for the Synology on your domain.
  2. Copy the contents of this repository into a local directory
  3. Connect to your DSM using SSH with your admin user and sudo as root sudo -i.
  4. Set the setup.sh script to be executable chmod +x setup.sh and execute the script ./setup.sh
  5. In the control panel you can now select INFOMANIAK_46 from the dropdown, enter your host name (subdomain.yourdomain.com), username and password (from the setup process at infomaniak.com).

DSM is executing the DDNS update normally once every 24 hours. The update request is only sent, if the IP address (ipv4 or ipv6 differs from the current A or AAAA DNS record).

Important: In the control panel in the column "External Address" only your IPv4 address will be displayed.

Credits and References

About

DynDNS including IPv6 for Infomaniak

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 86.8%Language:Shell 13.2%