Baza wiedzy
AVM Content
Setting up dynamic DNS in the FRITZ!Box
With dynamic DNS you can access your FRITZ!Box as well as applications and services in the home network for which you configured port sharing in the FRITZ!Box over the internet at a fixed domain name. This way you can easily access a NAS system or perform remote maintenance on a computer, for example, even if the FRITZ!Box's public IP addresses changes at regular intervals.
Note:You can also use the free AVM service MyFRITZ! to easily and securely access your FRITZ!Box and home network over the internet at any time.
Requirements / Restrictions
- The FRITZ!Box must either obtain an IPv6 address or a public IPv4 address from the internet service provider.
- The mobile network provider must allow incoming connections to the FRITZ!Box.
Important:Many mobile network providers block incoming connections or only allow ones with special contracts.
Note:All instructions on configuration and settings given in this guide refer to the latest FRITZ!OS for the FRITZ!Box.
1 Having your login information ready
- Have the domain name, your username, and the password with which you are registered with your dynamic DNS provider ready.
- Make note of the update URL of your dynamic DNS provider. With some providers, the update URL includes the update request for both the IPv4 address and the IPv6 address. Other providers have separate update URLs for the IPv4 address and for the IPv6 address.
Important:Further down in this guide you will find examples of update URLs from different providers. If there is no example for your provider, you can create the update URL yourself as described in the section "Creating your own update URL".
2 Setting up dynamic DNS
- Click "Internet" in the FRITZ!Box user interface.
- Click "Permit Access" in the "Internet" menu.
- Click on the "DynDNS" tab.
- Enable the option "Use DynDNS".
- Enter the update URL for your provider in the "Update URL" field. If the update request is to be performed for both IPv4 and IPv6 and your provider expects different update URLs for IPv4 and IPv6, then write both update URLs separated by a space in the field.
Note:Further down in this guide you will find examples of update URLs from different providers. If your provider is not mentioned there, you can create the update URL yourself as described in the section "Creating your own update URL".
- Enter in the "Domain name" field the domain name you specified with your provider.
- Enter in the "Username" field the username of your user account with the provider.
- Enter in the "Password" field the password of your user account with the provider.
- Click "Apply" to save the settings.
- Now the FRITZ!Box transmits its current IP addresses to the provider every time it connects to the internet so that the FRITZ!Box can always be contacted via its unique dynamic DNS domain name.
3 Examples of update URLs from different providers
Here you can find examples of update URLs from different dynamic DNS providers that you can copy and paste unchanged into the field "Update URL". If your provider is not mentioned here, create the update URL yourself as described in the section "Creating your own update URL".
AnyDNS.info
Update URL for the IPv4 and the IPv6 address:
https://anydns.info/update.php?user=<username>&password=<pass>&host=<domain>&ip=<ipaddr>&ip6=<ip6addr>
ddnss.de
Update URL for the IPv4 and the IPv6 address:
https://www.ddnss.de/upd.php?user=<username>&pwd=<pass>&host=<domain>&ip=<ipaddr>&ip6=<ip6addr>
Dnshome.de
Update URL for the IPv4 and IPv6 address:
https://www.dnshome.de/dyndns.php?ip=<ipaddr>; https://www.dnshome.de/dyndns.php?ip=<ip6addr>
DuckDNS.org
Update URL for the IPv4 and the IPv6 address:
https://www.duckdns.org/update?domains=<domain>&token=<pass>&ip=<ipaddr>&ipv6=<ip6addr>
Dyn.com
Update URL for the IPv4 and the IPv6 address:
https://<username>:<pass>@members.dyndns.org/v3/update?hostname=<domain>&myip=<ipaddr>,<ip6addr>
Dyndnsfree.de
Update URL for the IPv4 and the IPv6 address:
https://dynup.de/update.php?hostname=<domain>&ipv4=<ipaddr>&ipv6=<ip6addr>
No-IP.com
Update URL for the IPv4 and the IPv6 address:
https://dynupdate.no-ip.com/nic/update?hostname=<domain>&myip=<ipaddr>,<ip6addr>
selfhost.de
Update URL for the IPv4 and the IPv6 address:
https://carol.selfhost.de/nic/update?myip=<ipaddr>&host=<domain>; https://carol.selfhost.de/nic/update?myip=<ip6addr>&host=<domain>
STRATO.de
Update URL for the IPv4 and the IPv6 address:
https://dyndns.strato.com/nic/update?hostname=<domain>&myip=<ipaddr>,<ip6addr>
4 Creating your own update URL
If the update URL for your dynamic DNS provider is not included in the examples in this guide, check your provider's website for the update URL and replace the placeholder names in your provider's update URL with the placeholder names supported by FRITZ!Box.
Information in the update URL
The information contained in the update URL are required to update the IP address. Different dynamic DNS providers use not only different information, but even different names for this information.
One item of information every dynamic DNS provider uses in the update URL is the domain for which the IP address is to be updated. The entry for the domain can appear in the update URL under the following names: domain, domainname, host, hostname. Other designations are also possible. What matters is that you use the name prescribed by your provider.
All information in the update URL is assigned a value. The "domain" information is assigned the value of the name of the domain to be updated. A placeholder is entered in the update URL for the domain name. Placeholders are used for other information as well. The names of the placeholders are prescribed by the FRITZ!Box. When the FRITZ!Box executes the update request, for instance, after the IP address changes, then the placeholders are replaced by the current values.
The following table shows which entries that can be contained in an update request. Different providers may call these entries by different names. The placeholder used in the FRITZ!Box for each entry is listed. It is essential that these placeholders be used in the update URL exactly as they appear in the table:
Entry | Placeholder in the update URL of the FRITZ!Box |
---|---|
Username | <username> |
Password | <pass> or <passwd> |
Domain name | <domain> |
IPv4 address of the FRITZ!Box | <ipaddr> |
IPv6 address of the FRITZ!Box | <ip6addr> |
IPv6 prefix for the home network | <ip6lanprefix> |
Dual-stack | <dualstack> |
- The pointed brackets are part of the placeholder and absolutely must be entered in the update URL.
- If your provider uses other placeholder names, these must be replaced by the placeholder names from the above table.
- Some providers expect some of the data to be transmitted in Base64-coded format. All data that must be encoded for transmission must be designated as follows in the update URL of the FRITZ!Box:
<b64>the data to be encoded is contained here</b64>
Structure of the Update URL
The update URL is always structured according to the same schema: The update instruction is followed by the list of parameters. A parameter is a datum along with the assigned value. The call for the update instruction is followed by a question mark and then the list of parameters. Every update URL in the list of update URLs complies with this schema.
Example of the update URL for the IPv4 and the IPv6 address for the provider AnyDNS:
https://anydns.info/update.php?user=<username>&password=<pass>&host=<domain>&ip=<ipaddr>&ip6=<ip6addr>
The update instruction is: https://anydns.info/update.php
After the update instruction comes the "?"
After the ? comes the parameter list:
user=<username>&password=<pass>&host=<domain>&ip=<ipaddr>&ip6=<ip6addr>
Structure of the parameter list
The parameter list is a sequence of all parameters which the dynamic DNS provider expects in the update URL. A parameter consist of a datum and the value assigned to it. The value is assigned using an equal sign. The individual parameters are separated from each other by an &.
Example of the update URL for the IPv4 and the IPv6 address for the provider AnyDNS with 5 parameters:
https://anydns.info/update.php?user=<username>&password=<pass>&host=<domain>&ip=<ipaddr>&ip6=<ip6addr>
Parameters in the update URL:
user=<username>
password=<pass>
host=<domain>
ip=<ipaddr>
ip6=<ip6addr>
Encrypted dynamic DNS update
If the dynamic DNS provider supports an encrypted dynamic DNS update via HTTPS, add an https:// in front of the update URL to use HTTPS encryption.
Example:
https://[Update-Url-Link-v4]/?requestid=<pass>&ip4addr=<ipaddr>